From 1e38045d702ec6eb2425016d9b02636270ab1b1e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 12 Aug 2023 13:40:55 +1000 Subject: 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 --- src/normal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/normal.cc') 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"]); -- cgit v1.2.3