1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
To: vim-dev@vim.org
Subject: Patch 7.2.124
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
------------
Patch 7.2.124
Problem: Typing 'q' at more prompt for ":tselect" output still displays
more lines, causing another more prompt. (Markus Heidelberg)
Solution: Quit listing tags when 'q' typed.
Files: src/tag.c
*** ../vim-7.2.123/src/tag.c Sat Feb 21 22:57:10 2009
--- src/tag.c Mon Feb 23 00:07:24 2009
***************
*** 618,624 ****
taglen_advance(taglen);
MSG_PUTS_ATTR(_("file\n"), hl_attr(HLF_T));
! for (i = 0; i < num_matches; ++i)
{
parse_match(matches[i], &tagp);
if (!new_tag && (
--- 618,624 ----
taglen_advance(taglen);
MSG_PUTS_ATTR(_("file\n"), hl_attr(HLF_T));
! for (i = 0; i < num_matches && !got_int; ++i)
{
parse_match(matches[i], &tagp);
if (!new_tag && (
***************
*** 655,660 ****
--- 655,662 ----
}
if (msg_col > 0)
msg_putchar('\n');
+ if (got_int)
+ break;
msg_advance(15);
/* print any extra fields */
***************
*** 689,694 ****
--- 691,698 ----
if (msg_col + ptr2cells(p) >= Columns)
{
msg_putchar('\n');
+ if (got_int)
+ break;
msg_advance(15);
}
p = msg_outtrans_one(p, attr);
***************
*** 704,709 ****
--- 708,715 ----
if (msg_col > 15)
{
msg_putchar('\n');
+ if (got_int)
+ break;
msg_advance(15);
}
}
***************
*** 734,739 ****
--- 740,747 ----
{
if (msg_col + (*p == TAB ? 1 : ptr2cells(p)) > Columns)
msg_putchar('\n');
+ if (got_int)
+ break;
msg_advance(15);
/* skip backslash used for escaping command char */
***************
*** 760,771 ****
if (msg_col)
msg_putchar('\n');
ui_breakcheck();
- if (got_int)
- {
- got_int = FALSE; /* only stop the listing */
- break;
- }
}
ask_for_selection = TRUE;
}
#if defined(FEAT_QUICKFIX) && defined(FEAT_EVAL)
--- 768,776 ----
if (msg_col)
msg_putchar('\n');
ui_breakcheck();
}
+ if (got_int)
+ got_int = FALSE; /* only stop the listing */
ask_for_selection = TRUE;
}
#if defined(FEAT_QUICKFIX) && defined(FEAT_EVAL)
*** ../vim-7.2.123/src/version.c Sun Feb 22 23:42:08 2009
--- src/version.c Mon Feb 23 00:51:57 2009
***************
*** 678,679 ****
--- 678,681 ----
{ /* Add new patch number below this line */
+ /**/
+ 124,
/**/
--
hundred-and-one symptoms of being an internet addict:
123. You ask the car dealer to install an extra cigarette lighter
on your new car to power your notebook.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|