patch 7.4.2326
Problem: Illegal memory access when Visual selection starts in invalid
position. (Dominique Pelle)
Solution: Correct position when needed.
diff --git a/src/normal.c b/src/normal.c
index 0f9b230..edaa740 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -9451,7 +9451,10 @@
#ifdef FEAT_MBYTE
/* prevent from moving onto a trail byte */
if (has_mbyte)
+ {
+ check_pos(curwin->w_buffer, &oap->end);
mb_adjustpos(curwin->w_buffer, &oap->end);
+ }
#endif
getvvcol(curwin, &(oap->start), &oap->start_vcol, NULL, &oap->end_vcol);