home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / old / 5.6.071 < prev    next >
Encoding:
Internet Message Format  |  2000-05-08  |  1.9 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 5.6.071
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.6.071
  8. Problem:    "A" in Visual block mode on a Tab positions the cursor one char to
  9.         the right. (Michael Haumann)
  10. Solution:   Correct the column computation in op_insert().
  11. Files:        src/ops.c
  12.  
  13.  
  14. *** ../vim-5.6.70/src/ops.c    Wed Apr 12 19:04:03 2000
  15. --- src/ops.c    Tue May  9 17:36:35 2000
  16. ***************
  17. *** 1855,1871 ****
  18.       {
  19.           /* this lil bit if code adapted from nv_append() */
  20.           curwin->w_set_curswant = TRUE;
  21. !         while (oneright() == OK
  22. !             && (curwin->w_cursor.col < (bd.textcol + bd.textlen - 1)))
  23.           ;
  24.       }
  25.       else
  26.           curwin->w_cursor = oap->end;
  27.   
  28. !     /* Works just like an 'i'nsert on the next character. */
  29. !     if (!lineempty(curwin->w_cursor.lnum)
  30. !         && oap->start_vcol != oap->end_vcol)
  31. !         inc_cursor();
  32.       }
  33.   
  34.       edit(NUL, FALSE, (linenr_t)count1);
  35. --- 1855,1873 ----
  36.       {
  37.           /* this lil bit if code adapted from nv_append() */
  38.           curwin->w_set_curswant = TRUE;
  39. !         while (inc_cursor() == 0
  40. !             && (curwin->w_cursor.col < bd.textcol + bd.textlen))
  41.           ;
  42.       }
  43.       else
  44. +     {
  45.           curwin->w_cursor = oap->end;
  46.   
  47. !         /* Works just like an 'i'nsert on the next character. */
  48. !         if (!lineempty(curwin->w_cursor.lnum)
  49. !             && oap->start_vcol != oap->end_vcol)
  50. !         inc_cursor();
  51. !     }
  52.       }
  53.   
  54.       edit(NUL, FALSE, (linenr_t)count1);
  55. *** ../vim-5.6.70/src/version.c    Tue Apr 25 20:43:02 2000
  56. --- src/version.c    Tue May  9 17:43:59 2000
  57. ***************
  58. *** 420,421 ****
  59. --- 420,423 ----
  60.   {   /* Add new patch number below this line */
  61. + /**/
  62. +     71,
  63.   /**/
  64.  
  65. -- 
  66. MAN:    Fetchez la vache!
  67. GUARD:  Quoi?
  68. MAN:    Fetchez la vache!
  69.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  70.  
  71. /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\
  72. \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/
  73.