]> git.ipfire.org Git - ipfire-3.x.git/blob - vim/patches/vim-7.3.185.patch0
7b3ed18991ae5e2b216e7db70f87b586a6ed6a15
[ipfire-3.x.git] / vim / patches / vim-7.3.185.patch0
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.185
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.3.185
11 Problem: ":windo g/pattern/q" closes windows and reports "N more lines".
12 (Tim Chase)
13 Solution: Remember what buffer ":global" started in. (Jean-Rene David)
14 Files: src/ex_cmds.c
15
16
17 *** ../vim-7.3.184/src/ex_cmds.c 2011-04-11 21:35:03.000000000 +0200
18 --- src/ex_cmds.c 2011-05-10 15:58:48.000000000 +0200
19 ***************
20 *** 5365,5372 ****
21 global_exe(cmd)
22 char_u *cmd;
23 {
24 ! linenr_T old_lcount; /* b_ml.ml_line_count before the command */
25 ! linenr_T lnum; /* line number according to old situation */
26
27 /*
28 * Set current position only once for a global command.
29 --- 5365,5373 ----
30 global_exe(cmd)
31 char_u *cmd;
32 {
33 ! linenr_T old_lcount; /* b_ml.ml_line_count before the command */
34 ! buf_T *old_buf = curbuf; /* remember what buffer we started in */
35 ! linenr_T lnum; /* line number according to old situation */
36
37 /*
38 * Set current position only once for a global command.
39 ***************
40 *** 5410,5417 ****
41 msg_didout = FALSE;
42
43 /* If substitutes done, report number of substitutes, otherwise report
44 ! * number of extra or deleted lines. */
45 ! if (!do_sub_msg(FALSE))
46 msgmore(curbuf->b_ml.ml_line_count - old_lcount);
47 }
48
49 --- 5411,5420 ----
50 msg_didout = FALSE;
51
52 /* If substitutes done, report number of substitutes, otherwise report
53 ! * number of extra or deleted lines.
54 ! * Don't report extra or deleted lines in the edge case where the buffer
55 ! * we are in after execution is different from the buffer we started in. */
56 ! if (!do_sub_msg(FALSE) && curbuf == old_buf)
57 msgmore(curbuf->b_ml.ml_line_count - old_lcount);
58 }
59
60 *** ../vim-7.3.184/src/version.c 2011-05-10 15:52:10.000000000 +0200
61 --- src/version.c 2011-05-10 15:57:40.000000000 +0200
62 ***************
63 *** 716,717 ****
64 --- 716,719 ----
65 { /* Add new patch number below this line */
66 + /**/
67 + 185,
68 /**/
69
70 --
71 hundred-and-one symptoms of being an internet addict:
72 79. All of your most erotic dreams have a scrollbar at the right side.
73
74 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
75 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
76 \\\ an exciting new programming language -- http://www.Zimbu.org ///
77 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///