home *** CD-ROM | disk | FTP | other *** search
- To: vim-dev@vim.org
- Subject: Patch 6.0.239
- Fcc: outbox
- From: Bram Moolenaar <Bram@moolenaar.net>
- MIME-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- ------------
-
- Patch 6.0.239
- Problem: Using "A" to append after a Visually selected block which is after
- the end of the line, spaces are inserted in the wrong line and
- other unexpected effects. (Michael Naumann)
- Solution: Don't advance the cursor to the next line.
- Files: src/ops.c
-
-
- *** ../vim60.238/src/ops.c Mon Feb 18 10:26:39 2002
- --- src/ops.c Wed Feb 20 20:47:18 2002
- ***************
- *** 2201,2211 ****
- #endif
- )
- {
- ! /* this lil bit if code adapted from nv_append() */
- curwin->w_set_curswant = TRUE;
- ! while (inc_cursor() == 0
- && (curwin->w_cursor.col < bd.textcol + bd.textlen))
- ! ;
- if (bd.is_short && !bd.is_MAX)
- {
- /* First line was too short, make it longer and adjust the
- --- 2201,2211 ----
- #endif
- )
- {
- ! /* Move the cursor to the character right of the block. */
- curwin->w_set_curswant = TRUE;
- ! while (*ml_get_cursor() != NUL
- && (curwin->w_cursor.col < bd.textcol + bd.textlen))
- ! ++curwin->w_cursor.col;
- if (bd.is_short && !bd.is_MAX)
- {
- /* First line was too short, make it longer and adjust the
- *** ../vim60.238/src/version.c Tue Feb 19 21:22:35 2002
- --- src/version.c Wed Feb 20 20:47:29 2002
- ***************
- *** 608,609 ****
- --- 608,611 ----
- { /* Add new patch number below this line */
- + /**/
- + 239,
- /**/
-
- --
- FIRST VILLAGER: We have found a witch. May we burn her?
- "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
-
- /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\
- /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\
- \\\ Project leader for A-A-P -- http://www.a-a-p.org ///
- \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
-