diff src/normal.c @ 2040:70c67b1bb1f1 v7.2.329

updated for version 7.2.329 Problem: "g_" doesn't position cursor correctly when in Visual mode and 'selection' is "exclusive". (Ben Fritz) Solution: Call adjust_for_sel().
author Bram Moolenaar <bram@zimbu.org>
date Tue, 12 Jan 2010 15:42:37 +0100
parents 451bed7e9572
children 23d366df1938
line wrap: on
line diff
--- a/src/normal.c
+++ b/src/normal.c
@@ -7873,6 +7873,9 @@ nv_g_cmd(cap)
 				    && vim_iswhite(ptr[curwin->w_cursor.col]))
 		--curwin->w_cursor.col;
 	    curwin->w_set_curswant = TRUE;
+#ifdef FEAT_VISUAL
+	    adjust_for_sel(cap);
+#endif
 	}
 	break;