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.0.082 < prev    next >
Encoding:
Internet Message Format  |  2001-11-04  |  2.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.082
  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.0.082
  11. Problem:    When swapping screens in an xterm and there is an (error) message
  12.         from the vimrc script, the shell prompt is after the message.
  13. Solution:   Output a newline when there was output on the alternate screen.
  14.         Also when starting the GUI.
  15. Files:        src/main.c
  16.  
  17.  
  18. *** ../vim60.81/src/main.c    Mon Nov  5 09:52:01 2001
  19. --- src/main.c    Mon Nov  5 22:04:39 2001
  20. ***************
  21. *** 1362,1367 ****
  22. --- 1362,1374 ----
  23.   #ifdef FEAT_GUI
  24.       if (gui.starting)
  25.       {
  26. + #if defined(UNIX) || defined(VMS)
  27. +     /* When something caused a message from a vimrc script, need to output
  28. +      * an extra newline before the shell prompt. */
  29. +     if (did_emsg || msg_didout)
  30. +         putchar('\n');
  31. + #endif
  32.       gui_start();        /* will set full_screen to TRUE */
  33.       TIME_MSG("starting GUI");
  34.       }
  35. ***************
  36. *** 1502,1507 ****
  37. --- 1509,1521 ----
  38.       dup(2);
  39.   #endif
  40.       }
  41. + #if defined(UNIX) || defined(VMS)
  42. +     /* When switching screens and something caused a message from a vimrc
  43. +      * script, need to output an extra newline on exit. */
  44. +     if ((did_emsg || msg_didout) && *T_TI != NUL)
  45. +     newline_on_exit = TRUE;
  46. + #endif
  47.   
  48.       /*
  49.        * When done something that is not allowed or error message call
  50. *** ../vim60.81/src/version.c    Mon Nov  5 21:24:46 2001
  51. --- src/version.c    Mon Nov  5 22:06:01 2001
  52. ***************
  53. *** 608,609 ****
  54. --- 608,611 ----
  55.   {   /* Add new patch number below this line */
  56. + /**/
  57. +     82,
  58.   /**/
  59.  
  60. -- 
  61. hundred-and-one symptoms of being an internet addict:
  62. 6. You refuse to go to a vacation spot with no electricity and no phone lines.
  63.  
  64.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  65. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  66.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  67.