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.132 < prev    next >
Encoding:
Internet Message Format  |  2002-07-20  |  1.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.132
  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.132
  11. Problem:    Executing a register in Ex mode may cause commands to be skipped.
  12.         (John McGowan)
  13. Solution:   In Ex mode use an extra check if the register contents was
  14.         consumed, to avoid input goes into the typeahead buffer.
  15. Files:        src/ex_docmd.c
  16.  
  17.  
  18. *** ../vim61.131/src/ex_docmd.c    Thu Jul  4 21:00:06 2002
  19. --- src/ex_docmd.c    Thu Jul 18 20:44:49 2002
  20. ***************
  21. *** 6400,6406 ****
  22. --- 6408,6421 ----
  23.       exec_from_reg = TRUE;
  24.       /* execute from the mapbuf */
  25.       while (vpeekc() == ':')
  26. +     {
  27.           (void)do_cmdline(NULL, getexline, NULL, DOCMD_NOWAIT|DOCMD_VERBOSE);
  28. +         /* In Ex mode need to quit when the typeahead is exhausted,
  29. +          * otherwise input unexpectedly goes to the typeahead buffer and
  30. +          * getexmodeline() can't get it with inchar(). */
  31. +         if (exmode_active && stuff_empty() && typebuf.tb_len == 0)
  32. +         break;
  33. +     }
  34.   
  35.       exec_from_reg = save_efr;
  36.       }
  37. *** ../vim61.131/src/version.c    Sun Jul 21 20:47:17 2002
  38. --- src/version.c    Sun Jul 21 20:49:20 2002
  39. ***************
  40. *** 608,609 ****
  41. --- 608,611 ----
  42.   {   /* Add new patch number below this line */
  43. + /**/
  44. +     132,
  45.   /**/
  46.  
  47. -- 
  48. hundred-and-one symptoms of being an internet addict:
  49. 13. You refer to going to the bathroom as downloading.
  50.  
  51.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  52. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  53. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  54.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  55.