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 / 6.0.038 < prev    next >
Encoding:
Internet Message Format  |  2001-10-29  |  1.8 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.038
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.038
  11. Problem:    When 'selection' is "exclusive", deleting a block of text at the
  12.         end of a line can leave the cursor beyond the end of the line.
  13. Solution:   Correct the cursor position.
  14. Files:        src/ops.c
  15.  
  16.  
  17. *** ../vim60.37/src/ops.c    Sun Oct 28 16:41:29 2001
  18. --- src/ops.c    Tue Oct 30 11:14:22 2001
  19. ***************
  20. *** 1575,1581 ****
  21.           ml_replace(lnum, newp, FALSE);
  22.       }
  23.   
  24. !     /* Put cursor back at start of changed block */
  25.       changed_lines(curwin->w_cursor.lnum, curwin->w_cursor.col,
  26.                                  oap->end.lnum + 1, 0L);
  27.       oap->line_count = 0;        /* no lines deleted */
  28. --- 1575,1581 ----
  29.           ml_replace(lnum, newp, FALSE);
  30.       }
  31.   
  32. !     check_cursor_col();
  33.       changed_lines(curwin->w_cursor.lnum, curwin->w_cursor.col,
  34.                                  oap->end.lnum + 1, 0L);
  35.       oap->line_count = 0;        /* no lines deleted */
  36. *** ../vim60.37/src/version.c    Tue Oct 30 11:17:56 2001
  37. --- src/version.c    Tue Oct 30 11:17:22 2001
  38. ***************
  39. *** 608,609 ****
  40. --- 608,611 ----
  41.   {   /* Add new patch number below this line */
  42. + /**/
  43. +     38,
  44.   /**/
  45.  
  46. -- 
  47. ROBIN:  The what?
  48. ARTHUR: The Holy Hand Grenade of Antioch.  'Tis one of the sacred relics
  49.         Brother Maynard always carries with him.
  50. ALL:    Yes. Of course.
  51. ARTHUR: (shouting) Bring up the Holy Hand Grenade!
  52.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  53.  
  54.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  55. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  56.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  57.