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 / 5.7.002 < prev    next >
Encoding:
Internet Message Format  |  2000-06-26  |  1.9 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 5.7.002
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.7.002
  8. Problem:    When 'showmode' is set, using "CTRL-O :r file" waits three seconds
  9.             before displaying the read text. (Wichert Akkerman)
  10. Solution:   Set "keep_msg" to the file message so that the screen is redrawn
  11.             before the three seconds wait for displaying the mode message.
  12. Files:      src/fileio.c
  13.  
  14.  
  15. *** ../vim-5.7.1/src/fileio.c    Tue Jun 27 20:51:18 2000
  16. --- src/fileio.c    Tue Jun 27 10:22:03 2000
  17. ***************
  18. *** 966,975 ****
  19.   #endif
  20.           keep_msg = msg_trunc_attr(IObuff, FALSE, 0);
  21.           keep_msg_attr = 0;
  22. !         if (read_stdin)
  23.           {
  24.           /* When reading from stdin, the screen will be cleared next;
  25.            * keep the message to repeat it later.
  26.            * Copy the message (truncated) to msg_buf, because IObuff
  27.            * could be overwritten any time. */
  28.           STRNCPY(msg_buf, keep_msg, MSG_BUF_LEN);
  29. --- 966,978 ----
  30.   #endif
  31.           keep_msg = msg_trunc_attr(IObuff, FALSE, 0);
  32.           keep_msg_attr = 0;
  33. !         if (read_stdin || restart_edit != 0)
  34.           {
  35.           /* When reading from stdin, the screen will be cleared next;
  36.            * keep the message to repeat it later.
  37. +          * When restart_edit is set, keep the message to show it after
  38. +          * redrawing (otherwise there will be a delay before
  39. +          * redrawing).
  40.            * Copy the message (truncated) to msg_buf, because IObuff
  41.            * could be overwritten any time. */
  42.           STRNCPY(msg_buf, keep_msg, MSG_BUF_LEN);
  43. *** ../vim-5.7.1/src/version.c    Tue Jun 27 20:51:18 2000
  44. --- src/version.c    Tue Jun 27 20:49:49 2000
  45. ***************
  46. *** 439,440 ****
  47. --- 439,442 ----
  48.   {   /* Add new patch number below this line */
  49. + /**/
  50. +     2,
  51.   /**/
  52.  
  53. -- 
  54. I have a watch cat! Just break in and she'll watch.
  55.  
  56. ///  Bram Moolenaar     Bram@moolenaar.net     http://www.moolenaar.net  \\\
  57. \\\  Vim: http://www.vim.org      ICCF Holland: http://iccf-holland.org  ///
  58.