screen.c: remove screen_char_attr #3235

screen_char_attr is always 0, it was obviated by
3baba1e7bc.

References #1889
This commit is contained in:
Justin M. Keyes 2015-08-22 01:47:29 -04:00
parent 54973477e7
commit 6cf2925f63

View File

@ -162,11 +162,6 @@ static schar_T *current_ScreenLine;
#endif #endif
#define SEARCH_HL_PRIORITY 0 #define SEARCH_HL_PRIORITY 0
//signs column
/* Ugly global: overrule attribute used by screen_char() */
static int screen_char_attr = 0;
/* /*
* Redraw the current window later, with update_screen(type). * Redraw the current window later, with update_screen(type).
* Set must_redraw only if not already set to a higher value. * Set must_redraw only if not already set to a higher value.
@ -5718,10 +5713,7 @@ static void screen_char(unsigned off, int row, int col)
/* /*
* Stop highlighting first, so it's easier to move the cursor. * Stop highlighting first, so it's easier to move the cursor.
*/ */
if (screen_char_attr != 0) attr = ScreenAttrs[off];
attr = screen_char_attr;
else
attr = ScreenAttrs[off];
if (screen_attr != attr) if (screen_attr != attr)
screen_stop_highlight(); screen_stop_highlight();