patch 8.1.1489: sign order wrong when priority was changed
Problem: Sign order wrong when priority was changed.
Solution: Reorder signs when priority is changed. (Yegappan Lakshmanan,
closes #4502)
diff --git a/src/quickfix.c b/src/quickfix.c
index e237df0..290f6bc 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -5320,7 +5320,7 @@
* 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 @@
entry = entry->qf_next;
++*errornr;
}
-
- return entry;
}
/*
@@ -5357,7 +5355,7 @@
* 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 @@
if (linewise)
entry = qf_find_first_entry_on_line(entry, errornr);
}
-
- return entry;
}
/*
@@ -5403,11 +5399,9 @@
{
// 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;