patch 9.0.1172: when 'selection' is "exclusive" then "1v" is one char short
Problem: When 'selection' is "exclusive" then "1v" is one char short.
Solution: Add one character when 'selection' is "exclusive. (closes #11791)
diff --git a/src/normal.c b/src/normal.c
index cc4e246..c319be5 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -5472,7 +5472,9 @@
if (resel_VIsual_line_count <= 1)
{
update_curswant_force();
- curwin->w_curswant += resel_VIsual_vcol * cap->count0 - 1;
+ curwin->w_curswant += resel_VIsual_vcol * cap->count0;
+ if (*p_sel != 'e')
+ --curwin->w_curswant;
}
else
curwin->w_curswant = resel_VIsual_vcol;