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.110 < prev    next >
Encoding:
Internet Message Format  |  2001-12-30  |  2.8 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.110
  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.110
  11. Problem:    Using undo after executing "OxjAxkdd" from a register in
  12.         an empty buffer gives an error message.  (Gerhard Hochholzer)
  13. Solution:   Don't adjust the bottom line number of an undo block when it's
  14.         zero.  Add a test for this problem.
  15. Files:        src/undo.c, src/testdir/test20.in, src/testdir/test20.ok
  16.  
  17.  
  18. *** ../vim60.109/src/undo.c    Sat Nov  3 14:01:26 2001
  19. --- src/undo.c    Mon Dec 31 15:32:57 2001
  20. ***************
  21. *** 298,304 ****
  22.                   for (p = curbuf->b_u_newhead->uh_entry;
  23.                                p != uep; p = p->ue_next)
  24.                   {
  25. !                 p->ue_bot -= uep->ue_bot - newbot;
  26.                   p->ue_top -= uep->ue_bot - newbot;
  27.                   }
  28.               }
  29. --- 298,305 ----
  30.                   for (p = curbuf->b_u_newhead->uh_entry;
  31.                                p != uep; p = p->ue_next)
  32.                   {
  33. !                 if (p->ue_bot != 0)
  34. !                     p->ue_bot -= uep->ue_bot - newbot;
  35.                   p->ue_top -= uep->ue_bot - newbot;
  36.                   }
  37.               }
  38. *** ../vim60.109/src/testdir/test20.in    Sun Dec  3 22:01:15 2000
  39. --- src/testdir/test20.in    Mon Dec 31 15:29:09 2001
  40. ***************
  41. *** 1,9 ****
  42.   Tests Blockwise Visual when there are TABs before the text.
  43.   
  44.   STARTTEST
  45.   :so tiny.vim
  46. ! /start
  47. ! jjlld:.,$w! test.out
  48.   :qa!
  49.   ENDTEST
  50.   
  51. --- 1,16 ----
  52.   Tests Blockwise Visual when there are TABs before the text.
  53. + First test for undo working properly when executing commands from a register.
  54. + Also test this in an empty buffer.
  55.   
  56.   STARTTEST
  57.   :so tiny.vim
  58. ! G0"ay$k@au
  59. ! :new
  60. ! @auY:quit!
  61. ! GP
  62. ! /start here$
  63. ! jjlld
  64. ! :/here$/,$-1w! test.out
  65.   :qa!
  66.   ENDTEST
  67.   
  68. ***************
  69. *** 11,13 ****
  70. --- 18,22 ----
  71.           some text
  72.           test text
  73.   test text
  74. + OxjAykdd
  75. *** ../vim60.109/src/testdir/test20.ok    Sun Aug  1 14:01:14 1999
  76. --- src/testdir/test20.ok    Mon Dec 31 15:29:34 2001
  77. ***************
  78. *** 2,4 ****
  79. --- 2,6 ----
  80.           somext
  81.           tesext
  82.   test text
  83. *** ../vim60.109/src/version.c    Mon Dec 31 15:35:23 2001
  84. --- src/version.c    Mon Dec 31 15:34:29 2001
  85. ***************
  86. *** 608,609 ****
  87. --- 608,611 ----
  88.   {   /* Add new patch number below this line */
  89. + /**/
  90. +     110,
  91.   /**/
  92.  
  93. -- 
  94.     A KNIGHT rides into shot and hacks him to the ground.  He rides off.
  95.     We stay for a moment on the glade.  A MIDDLE-AGED LADY in a C. & A.
  96.     twin-set emerges from the trees and looks in horror at the body of her
  97.     HUSBAND.
  98. MRS HISTORIAN: FRANK!
  99.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  100.  
  101.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  102. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  103.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  104.