summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-05-29 23:12:04 +1000
committerMaxime Coste <mawww@kakoune.org>2019-05-29 23:12:04 +1000
commit1ebea85e6f07aeb6a8287b8043480f56f0e58edb (patch)
treec67f3e546db9a8582b524839f7f7e89c0e60c4d7 /src/input_handler.cc
parent7efdbb456d6855fe72790050d067c8a1b66993ba (diff)
Do not merge selections on backspace in insert mode
Fixes #2861
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index 58b8d0d2..750ec1d4 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -1235,6 +1235,8 @@ public:
if (not main_char.empty())
context().hooks().run_hook(Hook::InsertDelete, main_char, context());
+
+ context().selections_write_only().update(false);
}
else if (key == Key::Delete)
{