mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
ui: make 'mouse' handling in external UI more consistent
before the behaviour of 'mouse' was inconsistent in external UI, as some remapping logic would check has_mouse() and others don't (no difference in TUI or vim classic). With this change, the behaviour is consistently up to the UI decide (see ui.txt edit) Behaviour of tui.c is unaffected by this change.
This commit is contained in:
@@ -1880,9 +1880,6 @@ static int command_line_handle_key(CommandLineState *s)
|
||||
return command_line_not_changed(s); // Ignore mouse
|
||||
|
||||
case K_MIDDLEMOUSE:
|
||||
if (!mouse_has(MOUSE_COMMAND)) {
|
||||
return command_line_not_changed(s); // Ignore mouse
|
||||
}
|
||||
cmdline_paste(eval_has_provider("clipboard") ? '*' : 0, true, true);
|
||||
redrawcmd();
|
||||
return command_line_changed(s);
|
||||
@@ -1906,10 +1903,6 @@ static int command_line_handle_key(CommandLineState *s)
|
||||
s->ignore_drag_release = false;
|
||||
}
|
||||
|
||||
if (!mouse_has(MOUSE_COMMAND)) {
|
||||
return command_line_not_changed(s); // Ignore mouse
|
||||
}
|
||||
|
||||
ccline.cmdspos = cmd_startcol();
|
||||
for (ccline.cmdpos = 0; ccline.cmdpos < ccline.cmdlen;
|
||||
ccline.cmdpos++) {
|
||||
|
Reference in New Issue
Block a user