mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 23:31:51 +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:
@@ -3210,11 +3210,7 @@ ambw_end:
|
||||
}
|
||||
|
||||
if (varp == &p_mouse) {
|
||||
if (*p_mouse == NUL) {
|
||||
ui_call_mouse_off();
|
||||
} else {
|
||||
setmouse(); // in case 'mouse' changed
|
||||
}
|
||||
setmouse(); // in case 'mouse' changed
|
||||
}
|
||||
|
||||
if (curwin->w_curswant != MAXCOL
|
||||
@@ -4983,11 +4979,7 @@ void ui_refresh_options(void)
|
||||
ui_call_option_set(name, value);
|
||||
}
|
||||
if (p_mouse != NULL) {
|
||||
if (*p_mouse == NUL) {
|
||||
ui_call_mouse_off();
|
||||
} else {
|
||||
setmouse();
|
||||
}
|
||||
setmouse();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user