diff options
author | Jakson Alves de Aquino <jalvesaq@gmail.com> | 2015-05-18 00:03:17 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-05-01 11:33:50 +0200 |
commit | 58b210e1146f5fe3dd1affe4ab81a3cf48ae27ab (patch) | |
tree | ea51f84f788fa6cca2e48bc31e7bf02d08b2bede /src/nvim/digraph.c | |
parent | 5d6732ff094a514e8a2dd006b92a926605ecdfa8 (diff) | |
download | rneovim-58b210e1146f5fe3dd1affe4ab81a3cf48ae27ab.tar.gz rneovim-58b210e1146f5fe3dd1affe4ab81a3cf48ae27ab.tar.bz2 rneovim-58b210e1146f5fe3dd1affe4ab81a3cf48ae27ab.zip |
:digraphs : highlight with hl-SpecialKey #2690
closes #2690
Diffstat (limited to 'src/nvim/digraph.c')
-rw-r--r-- | src/nvim/digraph.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/digraph.c b/src/nvim/digraph.c index bc4c12e0b7..9e475bf66c 100644 --- a/src/nvim/digraph.c +++ b/src/nvim/digraph.c @@ -1700,6 +1700,9 @@ static void printdigraph(digr_T *dp) *p++ = dp->char1; *p++ = dp->char2; *p++ = ' '; + *p = NUL; + msg_outtrans(buf); + p = buf; // add a space to draw a composing char on if (utf_iscomposing(dp->result)) { @@ -1707,6 +1710,9 @@ static void printdigraph(digr_T *dp) } p += (*mb_char2bytes)(dp->result, p); + *p = NUL; + msg_outtrans_attr(buf, hl_attr(HLF_8)); + p = buf; if (char2cells(dp->result) == 1) { *p++ = ' '; } |