forked from aniani/vim
patch 8.0.1309: cannot use 'balloonexpr' in a terminal
Problem: Cannot use 'balloonexpr' in a terminal.
Solution: Add 'balloonevalterm' and add code to handle mouse movements in a
terminal. Initial implementation for Unix with GUI.
This commit is contained in:
@@ -1792,6 +1792,14 @@ vgetc(void)
|
||||
*/
|
||||
may_garbage_collect = FALSE;
|
||||
#endif
|
||||
#ifdef FEAT_BEVALTERM
|
||||
if (c != K_MOUSEMOVE && c != K_IGNORE)
|
||||
{
|
||||
/* Don't trigger 'balloonexpr' unless only the mouse was moved. */
|
||||
bevalexpr_due_set = FALSE;
|
||||
ui_remove_balloon();
|
||||
}
|
||||
#endif
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user