You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduced some bug when starting nvim . and nnn is in explorer mode.
I have modified the nnn.lua to print the existing variables hopefully this will help understanding the issue:
The original code:
-- Close and re-open explorer when it was fullscreenifmode=="explorer" andstate[mode][tab].fsthena.nvim_win_close(state[mode][tab].win, {force=true})
M.toggle("explorer", false, false)
c("vert resize +1 | vert resize -1 | wincmd p")
end
What I added:
if mode == "explorer" and state[mode][tab].fs then
+ vim.print(state[mode][tab].win)+ vim.print(state[mode][tab])+ vim.print(state[mode])+ vim.print(a.nvim_list_wins())+ vim.print(a.nvim_tabpage_list_wins(0))
a.nvim_win_close(state[mode][tab].win, {force = true})
M.toggle("explorer", false, false)
c("vert resize +1 | vert resize -1 | wincmd p")
end
And this is the output of the :messages
nil
{
buf = 1,
fs = true,
id = 3
}
{ {
buf = 1,
fs = true,
id = 3
} }
{ 1000 }
{ 1000 }
Error executing vim.schedule lua callback: ...l/share/nvim/site/pack/packer/start/nnn.nvim/lua/nnn.lua:132: Invalid 'window': Expected Lua nu
mber
stack traceback:
[C]: in function 'nvim_win_close'
...l/share/nvim/site/pack/packer/start/nnn.nvim/lua/nnn.lua:132: in function 'handle_files'
...l/share/nvim/site/pack/packer/start/nnn.nvim/lua/nnn.lua:164: in function <...l/share/nvim/site/pack/packer/start/nnn.nvim/lua/nnn
.lua:163>
As you can see there's no win property in the state[mode][tab]
As for the configs for nnn I'm using packer and requiring a file with the configs:
This change 62b0153
Introduced some bug when starting
nvim .
and nnn is inexplorer
mode.I have modified the nnn.lua to print the existing variables hopefully this will help understanding the issue:
The original code:
What I added:
And this is the output of the
:messages
As you can see there's no
win
property in thestate[mode][tab]
As for the configs for nnn I'm using packer and requiring a file with the configs:
There are a few more issues with these changes, but I can raise them in separate issues if you prefer?
For now I have reverted to a previous commit:
Let me know if you need any more info.
The text was updated successfully, but these errors were encountered: