summaryrefslogtreecommitdiffstats
path: root/src/cmdexpand.c
diff options
context:
space:
mode:
authornaohiro ono <obcat@icloud.com>2021-09-12 15:45:10 +0200
committerBram Moolenaar <Bram@vim.org>2021-09-12 15:45:10 +0200
commitdfe04dbff5863f6c089da8831d7ac2a3421a44b7 (patch)
tree4adc6720e23e1d34892e9c49acab5134b24af80e /src/cmdexpand.c
parentf1e8876fa2359b572d262772747405d3616db670 (diff)
patch 8.2.3431: completion for :disas sorts local functions firstv8.2.3431
Problem: Completion for :disas sorts local functions first. Solution: Sort local functions last, like with :delfunc. (Naohiro Ono, closes #8860)
Diffstat (limited to 'src/cmdexpand.c')
-rw-r--r--src/cmdexpand.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index 6c92957692..c36c21a3d8 100644
--- a/src/cmdexpand.c
+++ b/src/cmdexpand.c
@@ -2262,7 +2262,8 @@ ExpandGeneric(
{
if (xp->xp_context == EXPAND_EXPRESSION
|| xp->xp_context == EXPAND_FUNCTIONS
- || xp->xp_context == EXPAND_USER_FUNC)
+ || xp->xp_context == EXPAND_USER_FUNC
+ || xp->xp_context == EXPAND_DISASSEMBLE)
// <SNR> functions should be sorted to the end.
qsort((void *)*file, (size_t)*num_file, sizeof(char_u *),
sort_func_compare);