summaryrefslogtreecommitdiff
path: root/src/context.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-08-27 08:05:46 +1000
committerMaxime Coste <mawww@kakoune.org>2023-09-02 12:55:57 +1000
commit20a2bca52e0d159cdbab4ff6d38024cd1503a4f5 (patch)
treea019bb44362357ddf4ca8db4a17c576528825100 /src/context.hh
parent699027000551f04ce9f3e532d20c6e484ca7a945 (diff)
Do not make cursor visible after mouse scrolling and view commands
ensure cursor is visible after user input except if the command implementation opted-out. Hooks and timers should not enforce visible cursor. PageUp/PageDown and `<c-f>` / `<c-b>` commands still move the cursor as this seemed a desired behaviour.
Diffstat (limited to 'src/context.hh')
-rw-r--r--src/context.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/context.hh b/src/context.hh
index 69377148..f6f00b80 100644
--- a/src/context.hh
+++ b/src/context.hh
@@ -144,6 +144,8 @@ public:
void repeat_last_select() { if (m_last_select) m_last_select(*this); }
Buffer* last_buffer() const;
+
+ bool ensure_cursor_visible = true;
private:
void begin_edition();
void end_edition();