home *** CD-ROM | disk | FTP | other *** search
- To: vim-dev@vim.org
- Subject: Patch 5.6.071
- Fcc: outbox
- From: Bram Moolenaar <Bram@moolenaar.net>
- ------------
-
- Patch 5.6.071
- Problem: "A" in Visual block mode on a Tab positions the cursor one char to
- the right. (Michael Haumann)
- Solution: Correct the column computation in op_insert().
- Files: src/ops.c
-
-
- *** ../vim-5.6.70/src/ops.c Wed Apr 12 19:04:03 2000
- --- src/ops.c Tue May 9 17:36:35 2000
- ***************
- *** 1855,1871 ****
- {
- /* this lil bit if code adapted from nv_append() */
- curwin->w_set_curswant = TRUE;
- ! while (oneright() == OK
- ! && (curwin->w_cursor.col < (bd.textcol + bd.textlen - 1)))
- ;
- }
- else
- curwin->w_cursor = oap->end;
-
- ! /* Works just like an 'i'nsert on the next character. */
- ! if (!lineempty(curwin->w_cursor.lnum)
- ! && oap->start_vcol != oap->end_vcol)
- ! inc_cursor();
- }
-
- edit(NUL, FALSE, (linenr_t)count1);
- --- 1855,1873 ----
- {
- /* 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))
- ;
- }
- else
- + {
- curwin->w_cursor = oap->end;
-
- ! /* Works just like an 'i'nsert on the next character. */
- ! if (!lineempty(curwin->w_cursor.lnum)
- ! && oap->start_vcol != oap->end_vcol)
- ! inc_cursor();
- ! }
- }
-
- edit(NUL, FALSE, (linenr_t)count1);
- *** ../vim-5.6.70/src/version.c Tue Apr 25 20:43:02 2000
- --- src/version.c Tue May 9 17:43:59 2000
- ***************
- *** 420,421 ****
- --- 420,423 ----
- { /* Add new patch number below this line */
- + /**/
- + 71,
- /**/
-
- --
- MAN: Fetchez la vache!
- GUARD: Quoi?
- MAN: Fetchez la vache!
- "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
-
- /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\
- \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/
-