Fix Quickfix/Location List statusmenu mode string
This commit is contained in:
parent
378c8b0be4
commit
6c0c906cb2
@ -121,7 +121,11 @@ function statusline.active()
|
||||
-- loclist flag, query the window info.
|
||||
local info = vim.fn.getwininfo(vim.fn.win_getid())[1]
|
||||
if mode == 'Normal' then
|
||||
if info.loclist then mode = 'Location' else mode = 'Quickfix' end
|
||||
if info.loclist == 1 then
|
||||
mode = 'Location'
|
||||
else
|
||||
mode = 'Quickfix'
|
||||
end
|
||||
end
|
||||
local title = info.variables.quickfix_title
|
||||
return special('StatusLineLight', mode, title)
|
||||
|
Loading…
x
Reference in New Issue
Block a user