Mercurial > vim
diff src/message.c @ 6801:47ebd4065059 v7.4.722
patch 7.4.722
Problem: 0x202f is not recognized as a non-breaking space character.
Solution: Add 0x202f to the list. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 04 May 2015 17:28:22 +0200 |
parents | f2a751a9ee72 |
children | 1e621b31948b |
line wrap: on
line diff
--- a/src/message.c +++ b/src/message.c @@ -1697,7 +1697,9 @@ msg_prt_line(s, list) else if (has_mbyte && (l = (*mb_ptr2len)(s)) > 1) { col += (*mb_ptr2cells)(s); - if (lcs_nbsp != NUL && list && mb_ptr2char(s) == 160) + if (lcs_nbsp != NUL && list + && (mb_ptr2char(s) == 160 + || mb_ptr2char(s) == 0x202f)) { mb_char2bytes(lcs_nbsp, buf); buf[(*mb_ptr2len)(buf)] = NUL;