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.4 / 7.4.410 < prev    next >
Encoding:
Internet Message Format  |  2014-08-17  |  1.9 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.410
  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.4.410
  11. Problem:    Fold does not open after search when there is a CmdwinLeave
  12.         autocommand.
  13. Solution:   Restore KeyTyped. (Jacob Niehus)
  14. Files:        src/ex_getln.c
  15.  
  16.  
  17. *** ../vim-7.4.409/src/ex_getln.c    2014-06-25 14:39:35.102348584 +0200
  18. --- src/ex_getln.c    2014-08-17 17:21:38.811022992 +0200
  19. ***************
  20. *** 6363,6368 ****
  21. --- 6363,6371 ----
  22.   #ifdef FEAT_RIGHTLEFT
  23.       int            save_cmdmsg_rl = cmdmsg_rl;
  24.   #endif
  25. + #ifdef FEAT_FOLDING
  26. +     int            save_KeyTyped;
  27. + #endif
  28.   
  29.       /* Can't do this recursively.  Can't do it when typing a password. */
  30.       if (cmdwin_type != 0
  31. ***************
  32. *** 6497,6504 ****
  33. --- 6500,6518 ----
  34.       RedrawingDisabled = i;
  35.   
  36.   # ifdef FEAT_AUTOCMD
  37. + #  ifdef FEAT_FOLDING
  38. +     save_KeyTyped = KeyTyped;
  39. + #  endif
  40.       /* Trigger CmdwinLeave autocommands. */
  41.       apply_autocmds(EVENT_CMDWINLEAVE, typestr, typestr, FALSE, curbuf);
  42. + #  ifdef FEAT_FOLDING
  43. +     /* Restore KeyTyped in case it is modified by autocommands */
  44. +     KeyTyped = save_KeyTyped;
  45. + #  endif
  46.   # endif
  47.   
  48.       /* Restore the command line info. */
  49. *** ../vim-7.4.409/src/version.c    2014-08-17 17:05:39.163057796 +0200
  50. --- src/version.c    2014-08-17 17:19:33.011027554 +0200
  51. ***************
  52. *** 743,744 ****
  53. --- 743,746 ----
  54.   {   /* Add new patch number below this line */
  55. + /**/
  56. +     410,
  57.   /**/
  58.  
  59. -- 
  60. Have you heard about the new Beowulf cluster? It's so fast, it executes
  61. an infinite loop in 6 seconds.
  62.  
  63.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  64. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  65. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  66.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  67.