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.5.015 < prev    next >
Encoding:
Internet Message Format  |  1999-10-01  |  1.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 5.5.015
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.5.015
  8. Problem:    When using ":g/pat/p", it's hard to see where the output starts,
  9.             the ":g" command is overwritten.  Vi keeps the ":g" command.
  10. Solution:   Keep the ":g" command, but allow overwriting it with the report 
  11.             for the number of changes.
  12. Files:      src/ex_cmds.c
  13.  
  14.  
  15. *** ../vim-5.5.14/src/ex_cmds.c    Wed Sep 22 10:06:24 1999
  16. --- src/ex_cmds.c    Sat Oct  2 17:28:30 1999
  17. ***************
  18. *** 3642,3647 ****
  19. --- 3642,3650 ----
  20.        */
  21.       setpcmark();
  22.   
  23. +     /* When the command writes a message, don't overwrite the command. */
  24. +     msg_didout = TRUE;
  25.       global_need_beginline = FALSE;
  26.       global_busy = 1;
  27.       old_lcount = curbuf->b_ml.ml_line_count;
  28. ***************
  29. *** 3668,3673 ****
  30. --- 3671,3681 ----
  31.        * flicker.
  32.        */
  33.       redraw_later(NOT_VALID);
  34. +     /* If it looks like no message was written, allow overwriting the
  35. +      * command with the report for number of changes. */
  36. +     if (msg_col == 0 && msg_scrolled == 0)
  37. +         msg_didout = FALSE;
  38.   
  39.       /* If subsitutes done, report number of substitues, otherwise report
  40.        * number of extra or deleted lines. */
  41. *** ../vim-5.5.14/src/version.c    Sat Oct  2 17:20:01 1999
  42. --- src/version.c    Sat Oct  2 17:18:44 1999
  43. ***************
  44. *** 420,420 ****
  45. --- 420,421 ----
  46.   {   /* Add new patch number below this line */
  47. +     15,
  48.  
  49. --
  50. GALAHAD:   Camelot ...
  51. LAUNCELOT: Camelot ...
  52. GAWAIN:    It's only a model.
  53.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  54.  
  55. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  56.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  57.