Mercurial > vim
comparison src/drawline.c @ 18502:3ebb15e3c28d v8.1.2245
patch 8.1.2245: third character of 'listchars' tab shows in wrong place
Commit: https://github.com/vim/vim/commit/2f7b7b1e123d505637d21e0df28eb9e92667479c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 3 15:46:48 2019 +0100
patch 8.1.2245: third character of 'listchars' tab shows in wrong place
Problem: Third character of 'listchars' tab shows in wrong place when
'breakindent' is set.
Solution: Set c_final to NUL. (Naruhiko Nishino, closes #5165)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 03 Nov 2019 16:00:04 +0100 |
parents | 04a40c1514c4 |
children | 0ac88fdbf089 |
comparison
equal
deleted
inserted
replaced
18501:c9777bf23eb8 | 18502:3ebb15e3c28d |
---|---|
1171 # endif | 1171 # endif |
1172 } | 1172 } |
1173 # endif | 1173 # endif |
1174 p_extra = NULL; | 1174 p_extra = NULL; |
1175 c_extra = ' '; | 1175 c_extra = ' '; |
1176 c_final = NUL; | |
1176 n_extra = get_breakindent_win(wp, | 1177 n_extra = get_breakindent_win(wp, |
1177 ml_get_buf(wp->w_buffer, lnum, FALSE)); | 1178 ml_get_buf(wp->w_buffer, lnum, FALSE)); |
1178 // Correct end of highlighted area for 'breakindent', | 1179 // Correct end of highlighted area for 'breakindent', |
1179 // required when 'linebreak' is also set. | 1180 // required when 'linebreak' is also set. |
1180 if (tocol == vcol) | 1181 if (tocol == vcol) |
1645 else | 1646 else |
1646 { | 1647 { |
1647 #ifdef FEAT_LINEBREAK | 1648 #ifdef FEAT_LINEBREAK |
1648 int c0; | 1649 int c0; |
1649 #endif | 1650 #endif |
1650 | 1651 VIM_CLEAR(p_extra_free); |
1651 if (p_extra_free != NULL) | 1652 |
1652 VIM_CLEAR(p_extra_free); | |
1653 // Get a character from the line itself. | 1653 // Get a character from the line itself. |
1654 c = *ptr; | 1654 c = *ptr; |
1655 #ifdef FEAT_LINEBREAK | 1655 #ifdef FEAT_LINEBREAK |
1656 c0 = *ptr; | 1656 c0 = *ptr; |
1657 #endif | 1657 #endif |