diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-31 21:57:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-31 21:57:21 +0100 |
commit | 895d966e341c187ffcf9da88dba193cbfcebf000 (patch) | |
tree | 7ed600056bc325fbf3772d2ebc555d4116bcf43b /src/screen.c | |
parent | 375e3390078e740d3c83b0c118c50d9a920036c7 (diff) | |
download | vim-git-895d966e341c187ffcf9da88dba193cbfcebf000.tar.gz |
patch 8.1.0865: when 'listchars' only contains "nbsp:X" it does not workv8.1.0865
Problem: When 'listchars' only contains "nbsp:X" it does not work.
Solution: Set extra_check when lcs_nbsp is set. (Ralf Schandl, closes #3889)
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screen.c b/src/screen.c index 1370773f8..caf6e2c8b 100644 --- a/src/screen.c +++ b/src/screen.c @@ -1164,8 +1164,6 @@ win_update(win_T *wp) mod_bot = wp->w_redraw_bot + 1; else mod_bot = 0; - wp->w_redraw_top = 0; /* reset for next time */ - wp->w_redraw_bot = 0; if (buf->b_mod_set) { if (mod_top == 0 || mod_top > buf->b_mod_top) @@ -1277,6 +1275,8 @@ win_update(win_T *wp) if (mod_top != 0 && buf->b_mod_xlines != 0 && wp->w_p_nu) mod_bot = MAXLNUM; } + wp->w_redraw_top = 0; // reset for next time + wp->w_redraw_bot = 0; /* * When only displaying the lines at the top, set top_end. Used when @@ -3498,7 +3498,7 @@ win_line( if (wp->w_p_list) { - if (lcs_space || lcs_trail) + if (lcs_space || lcs_trail || lcs_nbsp) extra_check = TRUE; /* find start of trailing whitespace */ if (lcs_trail) |