diff options
| author | Maxime Coste <mawww@kakoune.org> | 2023-08-12 13:40:55 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2023-08-16 21:02:42 +1000 |
| commit | 1e38045d702ec6eb2425016d9b02636270ab1b1e (patch) | |
| tree | 0298a655119e5d87d9650d5aadc0f1fc76ffcbfd /src/normal.cc | |
| parent | 6942a4c0c9428a9e2ddb65de3969d2dcb5c5eb2f (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.cc | 2 |
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"]); |
