aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/state.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-10-23 02:36:46 +0000
committerBlaž Hrastnik2020-12-03 04:10:35 +0000
commitefc5aa2016e56e0721d125a20e3573d25af4dd76 (patch)
tree7db8aa4c14c5d2873fb0acd4bba54a36eef9f410 /helix-core/src/state.rs
parentc0e17dd324f016401d56d66b7c113dada0644155 (diff)
Simplify old_state handling.
Diffstat (limited to 'helix-core/src/state.rs')
-rw-r--r--helix-core/src/state.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs
index 7fd620a5..4d531aa0 100644
--- a/helix-core/src/state.rs
+++ b/helix-core/src/state.rs
@@ -4,6 +4,7 @@ use crate::{ChangeSet, Diagnostic, Position, Range, Rope, RopeSlice, Selection,
use anyhow::Error;
/// A state represents the current editor state of a single buffer.
+#[derive(Clone)]
pub struct State {
// TODO: fields should be private but we need to refactor commands.rs first
pub doc: Rope,