| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.929 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| 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 |
| |
| |
| |
| |
| |
| *** 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 |
| |
| |
| |
| *** 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 |
| + 0v3lgvcxxx |
| + :$put ='---' |
| :/^start:/+2,$w! test.out |
| :q! |
| ENDTEST |
| |
| |
| |
| *** 112,114 **** |
| --- 112,123 ---- |
| aaa |
| |
| --- |
| + |
| + gv in exclusive select mode after operation |
| + zzz |
| + xxx |
| + --- |
| + |
| + gv in exclusive select mode without operation |
| + xxx |
| + --- |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 929, |
| /**/ |
| |
| -- |
| Support your right to bare arms! Wear short sleeves! |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |