diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-08-22 01:47:29 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-08-25 18:59:41 -0400 |
commit | 6cf2925f6303135e6e77ac3ede2327947d0b2da9 (patch) | |
tree | 068a5abeed614d03591d4374a2ac6242ee009568 | |
parent | 54973477e7a7cc8f955d1755d3243e7f89461e34 (diff) | |
download | rneovim-6cf2925f6303135e6e77ac3ede2327947d0b2da9.tar.gz rneovim-6cf2925f6303135e6e77ac3ede2327947d0b2da9.tar.bz2 rneovim-6cf2925f6303135e6e77ac3ede2327947d0b2da9.zip |
screen.c: remove `screen_char_attr` #3235
screen_char_attr is always 0, it was obviated by
3baba1e7bc6698e6bc9f1d37fce88b30d6274bc9.
References #1889
-rw-r--r-- | src/nvim/screen.c | 10 |
1 files changed, 1 insertions, 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(); |