Mercurial > vim
diff src/ex_getln.c @ 828:01583c79d5f4 v7.0d03
updated for version 7.0d03
author | vimboss |
---|---|
date | Thu, 13 Apr 2006 20:37:35 +0000 |
parents | 23f82b5d2814 |
children | f24a95dae8ee |
line wrap: on
line diff
--- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -4444,8 +4444,9 @@ ExpandGeneric(xp, regmatch, num_file, fi } } - /* Sort the results. */ - sort_strings(*file, *num_file); + /* Sort the results. Keep menu's in the specified order. */ + if (xp->xp_context != EXPAND_MENUNAMES && xp->xp_context != EXPAND_MENUS) + sort_strings(*file, *num_file); return OK; }