summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-08-12 13:40:55 +1000
committerMaxime Coste <mawww@kakoune.org>2023-08-16 21:02:42 +1000
commit1e38045d702ec6eb2425016d9b02636270ab1b1e (patch)
tree0298a655119e5d87d9650d5aadc0f1fc76ffcbfd /src/normal.cc
parent6942a4c0c9428a9e2ddb65de3969d2dcb5c5eb2f (diff)
Only make cursor visible after buffer or selection change
Kakoune now does not touch cursors when scrolling. It checks if either the buffer or selections has been modified since last redraw. Fixes #4124 Fixes #2844
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/normal.cc b/src/normal.cc
index b16b9c37..8b26b1ff 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -848,7 +848,7 @@ void regex_prompt(Context& context, String prompt, char reg, T func)
{
selections.update();
context.selections_write_only() = selections;
- if (context.has_window())
+ if (context.has_window() and event != PromptEvent::Validate)
context.window().set_position(position);
context.input_handler().set_prompt_face(context.faces()["Prompt"]);