summaryrefslogtreecommitdiffstats
path: root/src/quickfix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-07 21:37:13 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-07 21:37:13 +0200
commit64416127fc184b5544530afe818722679158f059 (patch)
tree1e40693c42ae723795302899e98b4c8b2314c808 /src/quickfix.c
parent150f0550f45b836200a189e4d34417f4d3467455 (diff)
patch 8.1.1489: sign order wrong when priority was changedv8.1.1489
Problem: Sign order wrong when priority was changed. Solution: Reorder signs when priority is changed. (Yegappan Lakshmanan, closes #4502)
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index e237df0fa6..290f6bcccc 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -5320,7 +5320,7 @@ qf_find_closest_entry(
* the list. If linewise is TRUE, then treat multiple entries on a single line
* as one.
*/
- static qfline_T *
+ static void
qf_get_nth_below_entry(qfline_T *entry, int n, int linewise, int *errornr)
{
while (n-- > 0 && !got_int)
@@ -5348,8 +5348,6 @@ qf_get_nth_below_entry(qfline_T *entry, int n, int linewise, int *errornr)
entry = entry->qf_next;
++*errornr;
}
-
- return entry;
}
/*
@@ -5357,7 +5355,7 @@ qf_get_nth_below_entry(qfline_T *entry, int n, int linewise, int *errornr)
* the list. If linewise is TRUE, then treat multiple entries on a single line
* as one.
*/
- static qfline_T *
+ static void
qf_get_nth_above_entry(qfline_T *entry, int n, int linewise, int *errornr)
{
while (n-- > 0 && !got_int)
@@ -5373,8 +5371,6 @@ qf_get_nth_above_entry(qfline_T *entry, int n, int linewise, int *errornr)
if (linewise)
entry = qf_find_first_entry_on_line(entry, errornr);
}
-
- return entry;
}
/*
@@ -5403,11 +5399,9 @@ qf_find_nth_adj_entry(
{
// Go to the n'th entry in the current buffer
if (dir == FORWARD)
- adj_entry = qf_get_nth_below_entry(adj_entry, n, linewise,
- &errornr);
+ qf_get_nth_below_entry(adj_entry, n, linewise, &errornr);
else
- adj_entry = qf_get_nth_above_entry(adj_entry, n, linewise,
- &errornr);
+ qf_get_nth_above_entry(adj_entry, n, linewise, &errornr);
}
return errornr;