From 6cf2925f6303135e6e77ac3ede2327947d0b2da9 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 22 Aug 2015 01:47:29 -0400 Subject: screen.c: remove `screen_char_attr` #3235 screen_char_attr is always 0, it was obviated by 3baba1e7bc6698e6bc9f1d37fce88b30d6274bc9. References #1889 --- src/nvim/screen.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/nvim/screen.c b/src/nvim/screen.c index d57b84ad50..b40bf9ab5d 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -162,11 +162,6 @@ static schar_T *current_ScreenLine; #endif #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). * 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. */ - if (screen_char_attr != 0) - attr = screen_char_attr; - else - attr = ScreenAttrs[off]; + attr = ScreenAttrs[off]; if (screen_attr != attr) screen_stop_highlight(); -- cgit