# HG changeset patch # User Bram Moolenaar # Date 1263307357 -3600 # Node ID 70c67b1bb1f1aeddc1dea55438e11ae6f9ca3d14 # Parent 5c6fa259c9236cfacc66dfeade89414479b5aa58 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(). diff --git a/src/mkinstalldirs b/src/mkinstalldirs --- a/src/mkinstalldirs +++ b/src/mkinstalldirs @@ -4,8 +4,6 @@ # Created: 1993-05-16 # Public domain -# $Id$ - errstatus=0 for file diff --git a/src/normal.c b/src/normal.c --- 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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -682,6 +682,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 329, +/**/ 328, /**/ 327,