On Mo, 14 Jul 2014, [email protected] wrote:
> Status: New
> Owner: ----
> Labels: Type-Defect Priority-Medium
>
> New issue 238 by [email protected]: linebreak causes control
> characters to display incorrectly
> http://code.google.com/p/vim/issues/detail?id=238
>
> What steps will reproduce the problem?
> 1. Open vim, enter some control characters (^A, ^B, ^C)
> 2. :set linebreak
>
> What is the expected output? What do you see instead?
> Expect to see "^A^B^C", instead it shows "^^^".
>
> What version of the product are you using? On what operating system?
> Vim 7.4.364 on Linux.
>
> Please provide any additional information below.
> An hg bisect gives v7-4-353 as the first bad revision.
Sorry, this was my fault. This should fix the problem. (I'll update the
test, once Bram has split up test_listlbr in utf8 and non-utf8 part).
Best,
Christian
--
In der Welt der Frauen zählen nur die anderen Frauen.
-- Esther Vilar
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/screen.c b/src/screen.c
--- a/src/screen.c
+++ b/src/screen.c
@@ -4646,6 +4646,8 @@ win_line(wp, lnum, startrow, endrow, noc
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>" */