mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.0.0870: mouse escape codes sent to terminal unintentionally
Problem: Mouse escape codes sent to terminal unintentionally. Solution: Fix libvterm to send mouse codes only when enabled.
This commit is contained in:
@@ -86,6 +86,8 @@ void vterm_mouse_button(VTerm *vt, int button, int pressed, VTermModifier mod)
|
|||||||
/* Most of the time we don't get button releases from 4/5 */
|
/* Most of the time we don't get button releases from 4/5 */
|
||||||
if(state->mouse_buttons == old_buttons && button < 4)
|
if(state->mouse_buttons == old_buttons && button < 4)
|
||||||
return;
|
return;
|
||||||
|
if (!(state->mouse_flags & MOUSE_WANT_CLICK))
|
||||||
|
return;
|
||||||
|
|
||||||
if(button < 4) {
|
if(button < 4) {
|
||||||
output_mouse(state, button-1, pressed, mod, state->mouse_col, state->mouse_row);
|
output_mouse(state, button-1, pressed, mod, state->mouse_col, state->mouse_row);
|
||||||
|
@@ -37,7 +37,6 @@
|
|||||||
*
|
*
|
||||||
* TODO:
|
* TODO:
|
||||||
* - MS-Windows: no redraw for 'updatetime' #1915
|
* - MS-Windows: no redraw for 'updatetime' #1915
|
||||||
* - in bash mouse clicks are inserting characters.
|
|
||||||
* - mouse scroll: when over other window, scroll that window.
|
* - mouse scroll: when over other window, scroll that window.
|
||||||
* - add argument to term_wait() for waiting time.
|
* - add argument to term_wait() for waiting time.
|
||||||
* - For the scrollback buffer store lines in the buffer, only attributes in
|
* - For the scrollback buffer store lines in the buffer, only attributes in
|
||||||
|
@@ -769,6 +769,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
870,
|
||||||
/**/
|
/**/
|
||||||
869,
|
869,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user