0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.4.371

Problem:    When 'linebreak' is set control characters are not correctly
            displayed. (Kimmy Lindvall)
Solution:   Set n_extra. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2014-07-16 17:29:51 +02:00
parent b5647f71c2
commit 5524aebf16
2 changed files with 4 additions and 0 deletions

View File

@@ -4646,6 +4646,8 @@ win_line(wp, lnum, startrow, endrow, nochange)
else if (c != NUL)
{
p_extra = transchar(c);
if (n_extra == 0)
n_extra = byte2cells(c) - 1;
#ifdef FEAT_RIGHTLEFT
if ((dy_flags & DY_UHEX) && wp->w_p_rl)
rl_mirror(p_extra); /* reverse "<12>" */