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 / old / 5.6.072 < prev    next >
Encoding:
Internet Message Format  |  2000-05-08  |  1.4 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 5.6.072
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.6.072
  8. Problem:    When starting Vim with "vim +startinsert", it enters Insert mode
  9.         only after typing the first command. (Andrew Pimlott)
  10. Solution:   Insert a dummy command in the stuff buffer.
  11. Files:        src/main.c
  12.  
  13.  
  14. *** ../vim-5.6.71/src/main.c    Fri Mar 31 14:23:11 2000
  15. --- src/main.c    Tue May  9 20:57:12 2000
  16. ***************
  17. *** 1452,1457 ****
  18. --- 1452,1462 ----
  19.       mch_set_winsize_now();        /* Allow winsize changes from now on */
  20.   #endif
  21.   
  22. +     /* If ":startinsert" command used, stuff a dummy command to be able to
  23. +      * call normal_cmd(), which will then start Insert mode. */
  24. +     if (restart_edit)
  25. +     stuffReadbuff((char_u *)"\034\016");
  26.       /*
  27.        * main command loop
  28.        */
  29. *** ../vim-5.6.71/src/version.c    Tue May  9 17:51:49 2000
  30. --- src/version.c    Tue May  9 20:59:27 2000
  31. ***************
  32. *** 420,421 ****
  33. --- 420,423 ----
  34.   {   /* Add new patch number below this line */
  35. + /**/
  36. +     72,
  37.   /**/
  38.  
  39. -- 
  40. ARTHUR: Right! Knights! Forward!
  41.    ARTHUR leads a charge toward the castle.  Various shots of them battling on,
  42.    despite being hit by a variety of farm animals.
  43.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  44.  
  45. /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\
  46. \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/
  47.