File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 11VERSION = ' 0.8'
2+ print (PLATFORM )
23conf = require " config"
34local iface = require " iface"
45local utf = require " utf"
Original file line number Diff line number Diff line change @@ -1849,9 +1849,20 @@ if false then
18491849-- end
18501850end
18511851]] --
1852- hints = lev_sort (hints )
1853- unknown = lev_sort (unknown )
1854- multi = lev_sort (multi )
1852+ if # matches > 0 and # unknown > 0 and
1853+ not matches [1 ].extra and
1854+ matches [1 ].skip == 0 and
1855+ not matches [1 ].vargs then
1856+ hints = {}
1857+ unknown = {}
1858+ multi = {}
1859+ matches = { matches [1 ] }
1860+ else
1861+ hints = lev_sort (hints )
1862+ unknown = lev_sort (unknown )
1863+ multi = lev_sort (multi )
1864+ end
1865+
18551866 if # hints > 0 and # unknown > 0 then
18561867 if hints .lev > unknown .lev then
18571868 unknown = {}
You can’t perform that action at this time.
0 commit comments