Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View fix_zerowidth_not_atom.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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.