We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76e7f90 commit 92b07a2Copy full SHA for 92b07a2
1 file changed
lua/fzf-lua/profiles/ivy.lua
@@ -132,8 +132,12 @@ local focused_win = {
132
end,
133
on_close = function()
134
vim.api.nvim_buf_clear_namespace(buf, ns, 0, -1)
135
- vim.api.nvim_win_set_cursor(0, FzfLua.utils.__CTX().cursor)
136
- FzfLua.utils.zz()
+ -- on hide + change picker ctx will be nil
+ local ctx = FzfLua.utils.__CTX()
137
+ if ctx then
138
+ vim.api.nvim_win_set_cursor(0, ctx.cursor)
139
+ FzfLua.utils.zz()
140
+ end
141
142
}
143
0 commit comments