We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43ec250 commit 14a8b43Copy full SHA for 14a8b43
lua/mini/cmdline.lua
@@ -678,7 +678,7 @@ H.adjust_option_cmd_state = function(state)
678
-- and try to expand complpat to match the whole word on cursor's left.
679
if state.compltype == 'option' then return end
680
state.complpat = state.line:sub(1, state.pos - 1):match(' (%w+)$') or ''
681
- state.compltype = state.complpat ~= nil and 'option' or state.compltype
+ state.compltype = state.complpat ~= '' and 'option' or state.compltype
682
end
683
684
-- Autocomplete ---------------------------------------------------------------
0 commit comments