diff options
author | Blaž Hrastnik | 2020-10-23 02:36:46 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-12-03 04:10:35 +0000 |
commit | efc5aa2016e56e0721d125a20e3573d25af4dd76 (patch) | |
tree | 7db8aa4c14c5d2873fb0acd4bba54a36eef9f410 /helix-core | |
parent | c0e17dd324f016401d56d66b7c113dada0644155 (diff) |
Simplify old_state handling.
Diffstat (limited to 'helix-core')
-rw-r--r-- | helix-core/src/state.rs | 1 |
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, |