From 222b16cbb00d1151a5efedaded0be9dcc5ad7cdc Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 12 Jan 2010 15:41:13 +0000 Subject: [PATCH] [7.2.329] "g_" doesn't position cursor correctly when in Visual mode and Problem: "g_" doesn't position cursor correctly when in Visual mode and 'selection' is "exclusive". (Ben Fritz) Solution: Call adjust_for_sel(). Patch 7.2.329 --- src/normal.c | 3 +++ src/version.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/normal.c b/src/normal.c index befe4ac9..0c2325d9 100644 --- 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 index f628c8ca..1df2b6ac 100644 --- 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, -- 2.11.4.GIT