summaryrefslogtreecommitdiff
path: root/helix-core/src/state.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-10-21 04:47:20 +0000
committerBlaž Hrastnik2020-12-03 04:10:34 +0000
commitef5e5f9296d27d11ddfddf6d1c7daf93f9464ddb (patch)
tree9a9189b1f19a895e24b39dd9718baa8320979bc8 /helix-core/src/state.rs
parent49254d7180c8b92be5426cab20914b0343c9282c (diff)
state.version tracking
Diffstat (limited to 'helix-core/src/state.rs')
-rw-r--r--helix-core/src/state.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs
index 0f94f696..75e5cd40 100644
--- a/helix-core/src/state.rs
+++ b/helix-core/src/state.rs
@@ -29,6 +29,7 @@ pub struct State {
pub changes: ChangeSet,
pub old_state: Option<(Rope, Selection)>,
+ pub version: i64,
pub diagnostics: Vec<Diagnostic>,
}
@@ -61,6 +62,7 @@ impl State {
changes,
old_state,
diagnostics: Vec::new(),
+ version: 0,
}
}