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.1.060 < prev    next >
Encoding:
Internet Message Format  |  2002-05-10  |  2.1 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.060
  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.1.060
  11. Problem:    When 'virtualedit' is set and 'selection' is "exclusive", deleting
  12.         a character just before a tab changes the tab into spaces.  Undo
  13.         doesn't restore the tab. (Helmut Stiegler)
  14. Solution:   Don't replace the tab by spaces when it's not needed.  Correcly
  15.         save the line before it's changed.
  16. Files:        src/ops.c
  17.  
  18.  
  19. *** ../vim61.059/src/ops.c    Tue Apr  9 23:19:52 2002
  20. --- src/ops.c    Wed May  8 20:43:00 2002
  21. ***************
  22. *** 1663,1673 ****
  23.           }
  24.           }
  25.   
  26. !         if (gchar_pos(&oap->end) == '\t')
  27.           {
  28. !         /* save last line for undo if it's not also the first line */
  29. !         if (oap->end.lnum != curwin->w_cursor.lnum
  30. !             && u_save((linenr_T)(oap->end.lnum - 1),
  31.                          (linenr_T)(oap->end.lnum + 1)) == FAIL)
  32.               return FAIL;
  33.           curwin->w_cursor = oap->end;
  34. --- 1663,1674 ----
  35.           }
  36.           }
  37.   
  38. !         /* Break a tab only when it's included in the area. */
  39. !         if (gchar_pos(&oap->end) == '\t'
  40. !                       && oap->end.coladd < oap->inclusive)
  41.           {
  42. !         /* save last line for undo */
  43. !         if (u_save((linenr_T)(oap->end.lnum - 1),
  44.                          (linenr_T)(oap->end.lnum + 1)) == FAIL)
  45.               return FAIL;
  46.           curwin->w_cursor = oap->end;
  47. *** ../vim61.059/src/version.c    Sat May 11 20:47:01 2002
  48. --- src/version.c    Sat May 11 20:47:51 2002
  49. ***************
  50. *** 608,609 ****
  51. --- 608,611 ----
  52.   {   /* Add new patch number below this line */
  53. + /**/
  54. +     60,
  55.   /**/
  56.  
  57. -- 
  58. You can test a person's importance in the organization by asking how much RAM
  59. his computer has.  Anybody who knows the answer to that question is not a
  60. decision-maker.
  61.                 (Scott Adams - The Dilbert principle)
  62.  
  63.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  64. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  65. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  66.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  67.