|
Karsten Hopp |
725ca2 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
725ca2 |
Subject: Patch 7.3.185
|
|
Karsten Hopp |
725ca2 |
Fcc: outbox
|
|
Karsten Hopp |
725ca2 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
725ca2 |
Mime-Version: 1.0
|
|
Karsten Hopp |
725ca2 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
725ca2 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
725ca2 |
------------
|
|
Karsten Hopp |
725ca2 |
|
|
Karsten Hopp |
725ca2 |
Patch 7.3.185
|
|
Karsten Hopp |
725ca2 |
Problem: ":windo g/pattern/q" closes windows and reports "N more lines".
|
|
Karsten Hopp |
725ca2 |
(Tim Chase)
|
|
Karsten Hopp |
725ca2 |
Solution: Remember what buffer ":global" started in. (Jean-Rene David)
|
|
Karsten Hopp |
725ca2 |
Files: src/ex_cmds.c
|
|
Karsten Hopp |
725ca2 |
|
|
Karsten Hopp |
725ca2 |
|
|
Karsten Hopp |
725ca2 |
*** ../vim-7.3.184/src/ex_cmds.c 2011-04-11 21:35:03.000000000 +0200
|
|
Karsten Hopp |
725ca2 |
--- src/ex_cmds.c 2011-05-10 15:58:48.000000000 +0200
|
|
Karsten Hopp |
725ca2 |
***************
|
|
Karsten Hopp |
725ca2 |
*** 5365,5372 ****
|
|
Karsten Hopp |
725ca2 |
global_exe(cmd)
|
|
Karsten Hopp |
725ca2 |
char_u *cmd;
|
|
Karsten Hopp |
725ca2 |
{
|
|
Karsten Hopp |
725ca2 |
! linenr_T old_lcount; /* b_ml.ml_line_count before the command */
|
|
Karsten Hopp |
725ca2 |
! linenr_T lnum; /* line number according to old situation */
|
|
Karsten Hopp |
725ca2 |
|
|
Karsten Hopp |
725ca2 |
/*
|
|
Karsten Hopp |
725ca2 |
* Set current position only once for a global command.
|
|
Karsten Hopp |
725ca2 |
--- 5365,5373 ----
|
|
Karsten Hopp |
725ca2 |
global_exe(cmd)
|
|
Karsten Hopp |
725ca2 |
char_u *cmd;
|
|
Karsten Hopp |
725ca2 |
{
|
|
Karsten Hopp |
725ca2 |
! linenr_T old_lcount; /* b_ml.ml_line_count before the command */
|
|
Karsten Hopp |
725ca2 |
! buf_T *old_buf = curbuf; /* remember what buffer we started in */
|
|
Karsten Hopp |
725ca2 |
! linenr_T lnum; /* line number according to old situation */
|
|
Karsten Hopp |
725ca2 |
|
|
Karsten Hopp |
725ca2 |
/*
|
|
Karsten Hopp |
725ca2 |
* Set current position only once for a global command.
|
|
Karsten Hopp |
725ca2 |
***************
|
|
Karsten Hopp |
725ca2 |
*** 5410,5417 ****
|
|
Karsten Hopp |
725ca2 |
msg_didout = FALSE;
|
|
Karsten Hopp |
725ca2 |
|
|
Karsten Hopp |
725ca2 |
/* If substitutes done, report number of substitutes, otherwise report
|
|
Karsten Hopp |
725ca2 |
! * number of extra or deleted lines. */
|
|
Karsten Hopp |
725ca2 |
! if (!do_sub_msg(FALSE))
|
|
Karsten Hopp |
725ca2 |
msgmore(curbuf->b_ml.ml_line_count - old_lcount);
|
|
Karsten Hopp |
725ca2 |
}
|
|
Karsten Hopp |
725ca2 |
|
|
Karsten Hopp |
725ca2 |
--- 5411,5420 ----
|
|
Karsten Hopp |
725ca2 |
msg_didout = FALSE;
|
|
Karsten Hopp |
725ca2 |
|
|
Karsten Hopp |
725ca2 |
/* If substitutes done, report number of substitutes, otherwise report
|
|
Karsten Hopp |
725ca2 |
! * number of extra or deleted lines.
|
|
Karsten Hopp |
725ca2 |
! * Don't report extra or deleted lines in the edge case where the buffer
|
|
Karsten Hopp |
725ca2 |
! * we are in after execution is different from the buffer we started in. */
|
|
Karsten Hopp |
725ca2 |
! if (!do_sub_msg(FALSE) && curbuf == old_buf)
|
|
Karsten Hopp |
725ca2 |
msgmore(curbuf->b_ml.ml_line_count - old_lcount);
|
|
Karsten Hopp |
725ca2 |
}
|
|
Karsten Hopp |
725ca2 |
|
|
Karsten Hopp |
725ca2 |
*** ../vim-7.3.184/src/version.c 2011-05-10 15:52:10.000000000 +0200
|
|
Karsten Hopp |
725ca2 |
--- src/version.c 2011-05-10 15:57:40.000000000 +0200
|
|
Karsten Hopp |
725ca2 |
***************
|
|
Karsten Hopp |
725ca2 |
*** 716,717 ****
|
|
Karsten Hopp |
725ca2 |
--- 716,719 ----
|
|
Karsten Hopp |
725ca2 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
725ca2 |
+ /**/
|
|
Karsten Hopp |
725ca2 |
+ 185,
|
|
Karsten Hopp |
725ca2 |
/**/
|
|
Karsten Hopp |
725ca2 |
|
|
Karsten Hopp |
725ca2 |
--
|
|
Karsten Hopp |
725ca2 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
725ca2 |
79. All of your most erotic dreams have a scrollbar at the right side.
|
|
Karsten Hopp |
725ca2 |
|
|
Karsten Hopp |
725ca2 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
725ca2 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
725ca2 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
725ca2 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|