diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-01-02 23:18:31 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-01-04 01:24:49 +0100 |
commit | e2d71d11de9282521e931d832a92154acd341ef0 (patch) | |
tree | 672edfe5715dc270432db5bd7c4c62c656269918 /src/nvim/normal.c | |
parent | 103e02191237ab697fa694c6905173daa7023865 (diff) | |
download | rneovim-e2d71d11de9282521e931d832a92154acd341ef0.tar.gz rneovim-e2d71d11de9282521e931d832a92154acd341ef0.tar.bz2 rneovim-e2d71d11de9282521e931d832a92154acd341ef0.zip |
remove check_visual_highlight()
This check is meaningless, we assume the terminal supports reverse-mode.
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index a050c95224..8733c6db62 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -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; @@ -2935,22 +2934,6 @@ static int get_mouse_class(char_u *p) } /* - * 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 * do_pending_operator(). @@ -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; |