]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.840 v7.3.840
authorBram Moolenaar <Bram@vim.org>
Tue, 26 Feb 2013 17:46:01 +0000 (18:46 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 26 Feb 2013 17:46:01 +0000 (18:46 +0100)
Problem:    "\@<!" in regexp does not work correctly with multi-byte
            characters, especially cp932.
Solution:   Move column to start of multi-byte character. (Yasuhiro Matsumoto)

src/regexp.c
src/version.c

index d85ded8af07177da9bdd89466e1b759cfa41efab..6ecb6dd7a3bf9f77be93a8e7a7955fcd888a4899 100644 (file)
@@ -5449,6 +5449,13 @@ regmatch(scan)
                        }
                    }
                    else
+#ifdef FEAT_MBYTE
+                   if (has_mbyte)
+                       rp->rs_un.regsave.rs_u.pos.col -=
+                           (*mb_head_off)(regline, regline
+                                   + rp->rs_un.regsave.rs_u.pos.col - 1) + 1;
+                   else
+#endif
                        --rp->rs_un.regsave.rs_u.pos.col;
                }
                else
index 95cea6a77c7c38387b9718fb9976e59605a4f5db..7c12188fe54a22771ec10c22594bcd58bd104080 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    840,
 /**/
     839,
 /**/