mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-29 10:02:57 +03:00
parent
610d4114a9
commit
390bff3435
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user