| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.760 |
| 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.3.760 |
| Problem: dv_ deletes the white space before the line. |
| Solution: Move the cursor to the first non-white. (Christian Brabandt) |
| Files: src/normal.c, src/testdir/test19.in, src/testdir/test19.ok |
| |
| |
| |
| |
| |
| *** 8628,8634 **** |
| cap->oap->motion_type = MLINE; |
| if (cursor_down(cap->count1 - 1L, cap->oap->op_type == OP_NOP) == FAIL) |
| clearopbeep(cap->oap); |
| ! else if ( cap->oap->op_type == OP_DELETE |
| || cap->oap->op_type == OP_LSHIFT |
| || cap->oap->op_type == OP_RSHIFT) |
| beginline(BL_SOL | BL_FIX); |
| --- 8628,8636 ---- |
| cap->oap->motion_type = MLINE; |
| if (cursor_down(cap->count1 - 1L, cap->oap->op_type == OP_NOP) == FAIL) |
| clearopbeep(cap->oap); |
| ! else if ( (cap->oap->op_type == OP_DELETE /* only with linewise motions */ |
| ! && cap->oap->motion_force != 'v' |
| ! && cap->oap->motion_force != Ctrl_V) |
| || cap->oap->op_type == OP_LSHIFT |
| || cap->oap->op_type == OP_RSHIFT) |
| beginline(BL_SOL | BL_FIX); |
| |
| |
| |
| *** 1,4 **** |
| --- 1,5 ---- |
| Tests for "r<Tab>" with 'smarttab' and 'expandtab' set/not set. |
| + Also test that dv_ works correctly |
| |
| STARTTEST |
| :so small.vim |
| |
| *** 16,22 **** |
| :" Test that copyindent works with expandtab set |
| :set expandtab smartindent copyindent ts=8 sw=8 sts=8 |
| o{ |
| ! x:?^start?,$w! test.out |
| :qa! |
| ENDTEST |
| |
| --- 17,25 ---- |
| :" Test that copyindent works with expandtab set |
| :set expandtab smartindent copyindent ts=8 sw=8 sts=8 |
| o{ |
| ! x:set nosol |
| ! /Second line/ |
| ! fwdv_:?^start?,$w! test.out |
| :qa! |
| ENDTEST |
| |
| |
| *** 27,29 **** |
| --- 30,33 ---- |
| a cde |
| f ghi |
| test text |
| + Second line beginning with whitespace |
| |
| |
| |
| *** 7,9 **** |
| --- 7,10 ---- |
| test text |
| { |
| x |
| + with whitespace |
| |
| |
| |
| *** 727,728 **** |
| --- 727,730 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 760, |
| /**/ |
| |
| -- |
| hundred-and-one symptoms of being an internet addict: |
| 149. You find your computer sexier than your girlfriend |
| |
| /// 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 /// |