On Mi, 11 Nov 2015, Christian Brabandt wrote: > On Mi, 11 Nov 2015, Christian Brabandt wrote: > > Looks like a bug. Here is a patch, including a test. > > Well, that patch should also include an update for the ok file, so here > is an updated patch.
I must have been confused. The ok file was actually still wrong. Here is an update. Best, Christian -- An meinen Rechner lasse ich nur Strom und freie Software. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
diff --git a/src/normal.c b/src/normal.c --- a/src/normal.c +++ b/src/normal.c @@ -7993,6 +7993,9 @@ nv_g_cmd(cap) check_cursor(); VIsual = curwin->w_cursor; curwin->w_cursor = tpos; + /* need to adjust cursor position */ + if (*p_sel == 'e') + inc_cursor(); check_cursor(); update_topline(); /* diff --git a/src/testdir/test94.in b/src/testdir/test94.in --- a/src/testdir/test94.in +++ b/src/testdir/test94.in @@ -210,6 +210,14 @@ k$v$p :-2yank $v$p :$put ='---' +: +:$put ='' +:$put ='gv in exclusive select mode' +:$put ='zzz ' +:$put ='yyy ' +:set selection=exclusive +kv3lyjv3lpgvcxxx +:$put ='---' :/^start:/+2,$w! test.out :q! ENDTEST diff --git a/src/testdir/test94.ok b/src/testdir/test94.ok --- a/src/testdir/test94.ok +++ b/src/testdir/test94.ok @@ -112,3 +112,8 @@ cc aaa --- + +gv in exclusive select mode +zzz +xxx +---
