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 / 7.2 / 7.2.322 < prev    next >
Encoding:
Internet Message Format  |  2009-12-23  |  1.5 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.2.322
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.2.322
  11. Problem:    Wrong indenting in virtual replace mode with CTRL-Y below a short
  12.         line.
  13. Solution:   Check for character to be NUL. (suggested by Lech Lorens)
  14. Files:        src/edit.c
  15.  
  16.  
  17. *** ../vim-7.2.321/src/edit.c    2009-11-17 17:40:34.000000000 +0100
  18. --- src/edit.c    2009-12-24 15:18:23.000000000 +0100
  19. ***************
  20. *** 7397,7402 ****
  21. --- 7397,7406 ----
  22.       int        icase;
  23.       int        i;
  24.   
  25. +     if (keytyped == NUL)
  26. +     /* Can happen with CTRL-Y and CTRL-E on a short line. */
  27. +     return FALSE;
  28.   #ifdef FEAT_EVAL
  29.       if (*curbuf->b_p_inde != NUL)
  30.       look = curbuf->b_p_indk;    /* 'indentexpr' set: use 'indentkeys' */
  31. *** ../vim-7.2.321/src/version.c    2009-12-24 15:00:31.000000000 +0100
  32. --- src/version.c    2009-12-24 15:44:46.000000000 +0100
  33. ***************
  34. *** 683,684 ****
  35. --- 683,686 ----
  36.   {   /* Add new patch number below this line */
  37. + /**/
  38. +     322,
  39.   /**/
  40.  
  41. -- 
  42. hundred-and-one symptoms of being an internet addict:
  43. 45. You buy a Captain Kirk chair with a built-in keyboard and mouse.
  44.  
  45.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  46. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  47. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  48.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  49.