public
Last active

  • Download Gist
fix_zerowidth_not_atom.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
diff -r 8b86b69546a9 src/regexp.c
--- a/src/regexp.c Wed Feb 20 21:26:00 2013 +0100
+++ b/src/regexp.c Fri Feb 22 18:06:07 2013 +0900
@@ -5449,6 +5449,16 @@
}
}
else
+#ifdef FEAT_MBYTE
+ if (has_mbyte)
+ {
+ int off = (*mb_head_off)(regline,
+ regline +
+ rp->rs_un.regsave.rs_u.pos.col - 1) + 1;
+ rp->rs_un.regsave.rs_u.pos.col -= off;
+ }
+ else
+#endif
--rp->rs_un.regsave.rs_u.pos.col;
}
else

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.