Open zeertzjq opened 1 year ago
This seems to fix the problem:
diff --git a/lua/lualine.lua b/lua/lualine.lua
index 49e38a1..d34e79f 100644
--- a/lua/lualine.lua
+++ b/lua/lualine.lua
@@ -342,7 +342,6 @@ local function refresh(opts)
-- https://github.com/nvim-lualine/lualine.nvim/issues/791
if
opts.trigger == 'autocmd'
- and vim.v.event.new_mode ~= 'c'
-- scheduling in op-pending mode seems to call the callback forever.
-- so this is restricted in op-pending mode.
-- https://github.com/neovim/neovim/issues/22263
It looks like that line was added as mitigation to many bugs occurring because of updating option value in auto command context. I think those bugs still exist though I haven't checked in a while. I don't think we can remove that line right now.
Self Checks
How to reproduce the problem
Run the following shell commands:
Expected behaviour
Buffer content is
Actual behaviour
Buffer content is
Note that there is a trailing space on the last line.
Minimal config to reproduce the issue
Additional information