Hi,
2015-11-20(Fri) 4:12:20 UTC+9 Bram Moolenaar:
> Patch 7.4.929
> Problem: "gv" after paste selects one character less if 'selection' is
> "exclusive".
> Solution: Increment the end position. (Christian Brabandt)
> Files: src/normal.c, src/testdir/test94.in, src/testdir/test94.ok
>
>
> *** ../vim-7.4.928/src/normal.c 2015-09-25 19:34:57.891936941 +0200
> --- src/normal.c 2015-11-19 20:09:02.567921274 +0100
> ***************
> *** 9496,9501 ****
> --- 9496,9504 ----
> {
> curbuf->b_visual.vi_start = curbuf->b_op_start;
> curbuf->b_visual.vi_end = curbuf->b_op_end;
> + /* need to adjust cursor position */
> + if (*p_sel == 'e')
> + inc(&curbuf->b_visual.vi_end);
> }
>
> /* When all lines were selected and deleted do_put() leaves an empty
> *** ../vim-7.4.928/src/testdir/test94.in 2015-06-19 15:17:49.891065610
> +0200
> --- src/testdir/test94.in 2015-11-19 20:08:31.508255552 +0100
> ***************
> *** 210,215 ****
> --- 210,230 ----
> :-2yank
> $v$p
> :$put ='---'
> + :
> + :$put =''
> + :$put ='gv in exclusive select mode after operation'
> + :$put ='zzz '
> + :$put ='äà '
> + :set selection=exclusive
> + kv3lyjv3lpgvcxxx
> + :$put ='---'
> + :
> + :$put =''
> + :$put ='gv in exclusive select mode without operation'
> + :$put ='zzz '
> + :set selection=exclusive
> + 0v3l gvcxxx
> + :$put ='---'
> :/^start:/+2,$w! test.out
> :q!
> ENDTEST
> *** ../vim-7.4.928/src/testdir/test94.ok 2015-06-19 15:17:49.891065610
> +0200
> --- src/testdir/test94.ok 2015-11-19 19:59:32.450049406 +0100
> ***************
> *** 112,114 ****
> --- 112,123 ----
> aaa
>
> ---
> +
> + gv in exclusive select mode after operation
> + zzz
> + xxx
> + ---
> +
> + gv in exclusive select mode without operation
> + xxx
> + ---
> *** ../vim-7.4.928/src/version.c 2015-11-19 19:55:12.340839491 +0100
> --- src/version.c 2015-11-19 19:59:18.198202378 +0100
> ***************
> *** 743,744 ****
> --- 743,746 ----
> { /* Add new patch number below this line */
> + /**/
> + 929,
> /**/
Appveyor test94 FAILED in this version or later.
https://ci.appveyor.com/project/chrisbra/vim
Test passed on Linux. Only Appveyor faild.
--
Best regards,
Hirohito Higashi (a.k.a h_east)
--
--
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.