commit | 5524aebf160ac3acef6daf5485c9adc3b5aca92f | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Jul 16 17:29:51 2014 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Jul 16 17:29:51 2014 +0200 |
tree | 56d4ab25892a102b52349d44e6543de3028afd69 | |
parent | b5647f71c210cf943192381783e0a7242de9e51c [diff] [blame] |
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)
diff --git a/src/screen.c b/src/screen.c index 909a606..abbd911 100644 --- a/src/screen.c +++ b/src/screen.c
@@ -4646,6 +4646,8 @@ 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>" */