diff options
author | Blaž Hrastnik | 2021-09-08 07:53:10 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-09-24 01:30:17 +0000 |
commit | 9ea9e779b2eef293c14ae50d5767035c0a9544a5 (patch) | |
tree | 185910e2d59de7c2502d13fc6e1db09e25a59728 /helix-term/src/commands.rs | |
parent | a958d34bfbcf45c01ce0d9c0d76e681fb863fc6a (diff) |
experiment: Move keep_primary_selection to ,
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 117ba046..e3c351f6 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -2825,6 +2825,10 @@ fn open_above(cx: &mut Context) { fn normal_mode(cx: &mut Context) { let (view, doc) = current!(cx.editor); + if doc.mode == Mode::Normal { + return; + } + doc.mode = Mode::Normal; doc.append_changes_to_history(view.id); |