To: vim-dev@vim.org Subject: Patch 5.5.015 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.5.015 Problem: When using ":g/pat/p", it's hard to see where the output starts, the ":g" command is overwritten. Vi keeps the ":g" command. Solution: Keep the ":g" command, but allow overwriting it with the report for the number of changes. Files: src/ex_cmds.c *** ../vim-5.5.14/src/ex_cmds.c Wed Sep 22 10:06:24 1999 --- src/ex_cmds.c Sat Oct 2 17:28:30 1999 *************** *** 3642,3647 **** --- 3642,3650 ---- */ setpcmark(); + /* When the command writes a message, don't overwrite the command. */ + msg_didout = TRUE; + global_need_beginline = FALSE; global_busy = 1; old_lcount = curbuf->b_ml.ml_line_count; *************** *** 3668,3673 **** --- 3671,3681 ---- * flicker. */ redraw_later(NOT_VALID); + + /* If it looks like no message was written, allow overwriting the + * command with the report for number of changes. */ + if (msg_col == 0 && msg_scrolled == 0) + msg_didout = FALSE; /* If subsitutes done, report number of substitues, otherwise report * number of extra or deleted lines. */ *** ../vim-5.5.14/src/version.c Sat Oct 2 17:20:01 1999 --- src/version.c Sat Oct 2 17:18:44 1999 *************** *** 420,420 **** --- 420,421 ---- { /* Add new patch number below this line */ + 15, -- GALAHAD: Camelot ... LAUNCELOT: Camelot ... GAWAIN: It's only a model. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /