mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
remove check_visual_highlight()
This check is meaningless, we assume the terminal supports reverse-mode.
This commit is contained in:
@@ -2764,7 +2764,6 @@ do_mouse (
|
||||
if (VIsual_active)
|
||||
orig_cursor = VIsual;
|
||||
else {
|
||||
check_visual_highlight();
|
||||
VIsual = curwin->w_cursor;
|
||||
orig_cursor = VIsual;
|
||||
VIsual_active = true;
|
||||
@@ -2934,22 +2933,6 @@ static int get_mouse_class(char_u *p)
|
||||
return c;
|
||||
}
|
||||
|
||||
/*
|
||||
* Check if highlighting for visual mode is possible, give a warning message
|
||||
* if not.
|
||||
*/
|
||||
void check_visual_highlight(void)
|
||||
{
|
||||
static bool did_check = false;
|
||||
|
||||
if (full_screen) {
|
||||
if (!did_check && HL_ATTR(HLF_V) == 0) {
|
||||
MSG(_("Warning: terminal cannot highlight"));
|
||||
}
|
||||
did_check = true;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* End Visual mode.
|
||||
* This function should ALWAYS be called to end Visual mode, except from
|
||||
@@ -6420,7 +6403,6 @@ static void nv_visual(cmdarg_T *cap)
|
||||
}
|
||||
redraw_curbuf_later(INVERTED); /* update the inversion */
|
||||
} else { /* start Visual mode */
|
||||
check_visual_highlight();
|
||||
if (cap->count0 > 0 && resel_VIsual_mode != NUL) {
|
||||
/* use previously selected part */
|
||||
VIsual = curwin->w_cursor;
|
||||
|
Reference in New Issue
Block a user