mirror of
https://github.com/vim/vim.git
synced 2025-07-24 10:45:12 -04:00
patch 7.4.1971
Problem: It is not easy to see unrecognized error lines below the current error position. Solution: Add ":clist +count".
This commit is contained in:
parent
70e136e1d8
commit
e8fea0728a
@ -1,4 +1,4 @@
|
|||||||
*quickfix.txt* For Vim version 7.4. Last change: 2016 Jun 02
|
*quickfix.txt* For Vim version 7.4. Last change: 2016 Jul 01
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -270,11 +270,24 @@ processing a quickfix or location list command, it will be aborted.
|
|||||||
The 'switchbuf' settings are respected when jumping
|
The 'switchbuf' settings are respected when jumping
|
||||||
to a buffer.
|
to a buffer.
|
||||||
|
|
||||||
|
:cl[ist] +{count} List the current and next {count} valid errors. This
|
||||||
|
is similar to ":clist from from+count", where "from"
|
||||||
|
is the current error position.
|
||||||
|
|
||||||
:cl[ist]! [from] [, [to]]
|
:cl[ist]! [from] [, [to]]
|
||||||
List all errors.
|
List all errors.
|
||||||
|
|
||||||
*:lli* *:llist*
|
:cl[ist]! +{count} List the current and next {count} error lines. This
|
||||||
:lli[st] [from] [, [to]]
|
is useful to see unrecognized lines after the current
|
||||||
|
one. For example, if ":clist" shows:
|
||||||
|
8384 testje.java:252: error: cannot find symbol ~
|
||||||
|
Then using ":cl! +3" shows the reason:
|
||||||
|
8384 testje.java:252: error: cannot find symbol ~
|
||||||
|
8385: ZexitCode = Fmainx(); ~
|
||||||
|
8386: ^ ~
|
||||||
|
8387: symbol: method Fmainx() ~
|
||||||
|
|
||||||
|
:lli[st] [from] [, [to]] *:lli* *:llist*
|
||||||
Same as ":clist", except the location list for the
|
Same as ":clist", except the location list for the
|
||||||
current window is used instead of the quickfix list.
|
current window is used instead of the quickfix list.
|
||||||
|
|
||||||
@ -318,7 +331,7 @@ EXECUTE A COMMAND IN ALL THE BUFFERS IN QUICKFIX OR LOCATION LIST:
|
|||||||
etc.
|
etc.
|
||||||
< When the current file can't be |abandon|ed and the [!]
|
< When the current file can't be |abandon|ed and the [!]
|
||||||
is not present, the command fails.
|
is not present, the command fails.
|
||||||
When an error is detected excecution stops.
|
When an error is detected execution stops.
|
||||||
The last buffer (or where an error occurred) becomes
|
The last buffer (or where an error occurred) becomes
|
||||||
the current buffer.
|
the current buffer.
|
||||||
{cmd} can contain '|' to concatenate several commands.
|
{cmd} can contain '|' to concatenate several commands.
|
||||||
|
@ -2258,6 +2258,7 @@ qf_list(exarg_T *eap)
|
|||||||
int idx1 = 1;
|
int idx1 = 1;
|
||||||
int idx2 = -1;
|
int idx2 = -1;
|
||||||
char_u *arg = eap->arg;
|
char_u *arg = eap->arg;
|
||||||
|
int plus = FALSE;
|
||||||
int all = eap->forceit; /* if not :cl!, only show
|
int all = eap->forceit; /* if not :cl!, only show
|
||||||
recognised errors */
|
recognised errors */
|
||||||
qf_info_T *qi = &ql_info;
|
qf_info_T *qi = &ql_info;
|
||||||
@ -2278,16 +2279,30 @@ qf_list(exarg_T *eap)
|
|||||||
EMSG(_(e_quickfix));
|
EMSG(_(e_quickfix));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (*arg == '+')
|
||||||
|
{
|
||||||
|
++arg;
|
||||||
|
plus = TRUE;
|
||||||
|
}
|
||||||
if (!get_list_range(&arg, &idx1, &idx2) || *arg != NUL)
|
if (!get_list_range(&arg, &idx1, &idx2) || *arg != NUL)
|
||||||
{
|
{
|
||||||
EMSG(_(e_trailing));
|
EMSG(_(e_trailing));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
i = qi->qf_lists[qi->qf_curlist].qf_count;
|
if (plus)
|
||||||
if (idx1 < 0)
|
{
|
||||||
idx1 = (-idx1 > i) ? 0 : idx1 + i + 1;
|
i = qi->qf_lists[qi->qf_curlist].qf_index;
|
||||||
if (idx2 < 0)
|
idx2 = i + idx1;
|
||||||
idx2 = (-idx2 > i) ? 0 : idx2 + i + 1;
|
idx1 = i;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
i = qi->qf_lists[qi->qf_curlist].qf_count;
|
||||||
|
if (idx1 < 0)
|
||||||
|
idx1 = (-idx1 > i) ? 0 : idx1 + i + 1;
|
||||||
|
if (idx2 < 0)
|
||||||
|
idx2 = (-idx2 > i) ? 0 : idx2 + i + 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (qi->qf_lists[qi->qf_curlist].qf_nonevalid)
|
if (qi->qf_lists[qi->qf_curlist].qf_nonevalid)
|
||||||
all = TRUE;
|
all = TRUE;
|
||||||
|
@ -753,6 +753,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1971,
|
||||||
/**/
|
/**/
|
||||||
1970,
|
1970,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user