diff options
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index b4bb32a4..585d3498 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -161,7 +161,10 @@ struct MouseHandler case Key::Modifiers::MouseRelease: { if (not m_dragging) + { + context.ensure_cursor_visible = false; return true; + } auto& selections = context.selections(); cursor = context.window().buffer_coord(key.coord()); selections.main() = {buffer.clamp(m_anchor), cursor}; @@ -172,7 +175,10 @@ struct MouseHandler case Key::Modifiers::MousePos: { if (not m_dragging) + { + context.ensure_cursor_visible = false; return true; + } cursor = context.window().buffer_coord(key.coord()); auto& selections = context.selections(); selections.main() = {buffer.clamp(m_anchor), cursor}; |
