aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-10-01 09:44:12 +0000
committerBlaž Hrastnik2020-10-01 09:44:12 +0000
commit5945815d978da07d0970502d481c17ef02525c4d (patch)
treedb8e77f9aef2d14977588d73d71319822c5ef7ff /helix-core
parentd9d59cd209c9cbd1397ed4d05b1d14a6aad514bf (diff)
Fix cursor rendering & placement on append mode.
Diffstat (limited to 'helix-core')
-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,
}
}