fixup: prevent wildmode=list from disapearing
don't call redrawstatus on command mode if wildmode is set to list fixes #781
This commit is contained in:
parent
b1042d3184
commit
f40db9a224
|
@ -438,12 +438,18 @@ local function refresh(opts)
|
|||
end
|
||||
end
|
||||
|
||||
-- call redraw
|
||||
-- call redraw on command mode unless &wildmode=list
|
||||
-- workaround for
|
||||
-- https://github.com/neovim/neovim/issues/19472
|
||||
-- https://github.com/nvim-lualine/lualine.nvim/issues/781
|
||||
-- Note when wildmode is set to list https://github.com/neovim/neovim/issues/19472 issue persists.
|
||||
if vim.api.nvim_get_mode().mode == 'c' and not vim.go.wildmode:find('list') then
|
||||
if vim.tbl_contains(opts.place, 'statusline') or vim.tbl_contains(opts.place, 'winbar') then
|
||||
vim.cmd('redrawstatus')
|
||||
elseif vim.tbl_contains(opts.place, 'tabline') then
|
||||
vim.cmd('redrawtabline')
|
||||
end
|
||||
end
|
||||
|
||||
vim.g.actual_curwin = old_actual_curwin
|
||||
refresh_real_curwin = nil
|
||||
|
|
Loading…
Reference in New Issue