forked from aniani/vim
updated for version 7.3.769
Problem: 'matchpairs' does not work with multi-byte characters. Solution: Make it work. (Christian Brabandt)
This commit is contained in:
12
src/misc1.c
12
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))
|
||||
|
||||
Reference in New Issue
Block a user