diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-01-17 17:02:05 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-01-17 17:02:05 +0100 |
commit | 8c7694a8649cbd5ce91c150737b1f52b20631cb4 (patch) | |
tree | 6a476ff564c1af698be7b437c756761b2e47838e /src/misc1.c | |
parent | 3e37fd0950081e277fac44a0bd8e60815898945c (diff) | |
download | vim-8c7694a8649cbd5ce91c150737b1f52b20631cb4.zip |
updated for version 7.3.769
Problem: 'matchpairs' does not work with multi-byte characters.
Solution: Make it work. (Christian Brabandt)
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/misc1.c b/src/misc1.c index 636fc4a07..ab42f04db 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -2288,14 +2288,18 @@ ins_char_bytes(buf, charlen) */ if (p_sm && (State & INSERT) && msg_silent == 0 -#ifdef FEAT_MBYTE - && charlen == 1 -#endif #ifdef FEAT_INS_EXPAND && !ins_compl_active() #endif ) - showmatch(c); + { +#ifdef FEAT_MBYTE + if (has_mbyte) + showmatch(mb_ptr2char(buf)); + else +#endif + showmatch(c); + } #ifdef FEAT_RIGHTLEFT if (!p_ri || (State & REPLACE_FLAG)) |