summaryrefslogtreecommitdiff
path: root/src/drawline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-03 15:46:48 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-03 15:46:48 +0100
commit2f7b7b1e123d505637d21e0df28eb9e92667479c (patch)
treebdfe8422655ff8f6e695b15794ff12d02f2bda2d /src/drawline.c
parent82cf7f6df751505da285815a791463a049587849 (diff)
downloadvim-git-2f7b7b1e123d505637d21e0df28eb9e92667479c.tar.gz
patch 8.1.2245: third character of 'listchars' tab shows in wrong placev8.1.2245
Problem: Third character of 'listchars' tab shows in wrong place when 'breakindent' is set. Solution: Set c_final to NUL. (Naruhiko Nishino, closes #5165)
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drawline.c b/src/drawline.c
index dcfe92cc6..ea9e4a997 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -1173,6 +1173,7 @@ win_line(
# endif
p_extra = NULL;
c_extra = ' ';
+ c_final = NUL;
n_extra = get_breakindent_win(wp,
ml_get_buf(wp->w_buffer, lnum, FALSE));
// Correct end of highlighted area for 'breakindent',
@@ -1647,9 +1648,8 @@ win_line(
#ifdef FEAT_LINEBREAK
int c0;
#endif
+ VIM_CLEAR(p_extra_free);
- if (p_extra_free != NULL)
- VIM_CLEAR(p_extra_free);
// Get a character from the line itself.
c = *ptr;
#ifdef FEAT_LINEBREAK