| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.041 |
| 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.041 (after 7.4.034) |
| Problem: Visual selection does not remain after being copied over. (Axel |
| Bender) |
| Solution: Move when VIsual_active is reset. (Christian Brabandt) |
| Files: src/ops.c |
| |
| |
| |
| |
| |
| *** 3808,3816 **** |
| FALSE /* stop after 1 paste */ |
| #endif |
| ); |
| - #ifdef FEAT_VISUAL |
| - VIsual_active = FALSE; |
| - #endif |
| |
| curbuf->b_op_end = curwin->w_cursor; |
| /* For "CTRL-O p" in Insert mode, put cursor after last char */ |
| --- 3808,3813 ---- |
| |
| *** 3972,3977 **** |
| --- 3969,3978 ---- |
| if (regname == '=') |
| vim_free(y_array); |
| |
| + #ifdef FEAT_VISUAL |
| + VIsual_active = FALSE; |
| + #endif |
| + |
| /* If the cursor is past the end of the line put it at the end. */ |
| adjust_cursor_eol(); |
| } |
| |
| |
| |
| *** 740,741 **** |
| --- 740,743 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 41, |
| /**/ |
| |
| |
| -- |
| press CTRL-ALT-DEL for more information |
| |
| /// 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 /// |