diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-01-16 14:46:32 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-01-16 14:46:32 +0000 |
commit | 56da797e6d8542f22a74b1b7bb752e7a66d0be7f (patch) | |
tree | a999b41478e4ee7ab39d4574ba474907eb432be5 /src/message.c | |
parent | 84c4d79ad4aa98e1f22742b9896696bb2414b21a (diff) | |
download | vim-git-56da797e6d8542f22a74b1b7bb752e7a66d0be7f.tar.gz |
updated for version 7.0-185v7.0.185
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/message.c b/src/message.c index 2eee60442..0c40823a7 100644 --- a/src/message.c +++ b/src/message.c @@ -1556,7 +1556,7 @@ msg_prt_line(s, list) int c_extra = 0; char_u *p_extra = NULL; /* init to make SASC shut up */ int n; - int attr= 0; + int attr = 0; char_u *trail = NULL; #ifdef FEAT_MBYTE int l; @@ -1581,7 +1581,7 @@ msg_prt_line(s, list) while (!got_int) { - if (n_extra) + if (n_extra > 0) { --n_extra; if (c_extra) @@ -1595,7 +1595,7 @@ msg_prt_line(s, list) col += (*mb_ptr2cells)(s); mch_memmove(buf, s, (size_t)l); buf[l] = NUL; - msg_puts_attr(buf, attr); + msg_puts(buf); s += l; continue; } @@ -1635,6 +1635,9 @@ msg_prt_line(s, list) p_extra = transchar_byte(c); c_extra = NUL; c = *p_extra++; + /* Use special coloring to be able to distinguish <hex> from + * the same in plain text. */ + attr = hl_attr(HLF_8); } else if (c == ' ' && trail != NULL && s > trail) { |