aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-core/src/state.rs')
-rw-r--r--helix-core/src/state.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs
index c17e9c90..36ca221c 100644
--- a/helix-core/src/state.rs
+++ b/helix-core/src/state.rs
@@ -20,6 +20,8 @@ pub struct State {
pub selection: Selection,
pub mode: Mode,
+ pub restore_cursor: bool,
+
//
pub syntax: Option<Syntax>,
}
@@ -46,6 +48,7 @@ impl State {
selection: Selection::single(0, 0),
mode: Mode::Normal,
syntax: None,
+ restore_cursor: false,
}
}