Skip to content

Commit cd79d3c

Browse files
author
bekaboo
committed
fix(menu): cursor position not restored after exiting fzf mode
1 parent fd917b7 commit cd79d3c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lua/dropbar/menu.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,9 @@ function dropbar_menu_t:fuzzy_find_close()
814814
if self.is_opened then
815815
self:fuzzy_find_restore_entries()
816816
vim.bo[self.buf].modifiable = false
817+
if self.prev_cursor then
818+
vim.api.nvim_win_set_cursor(self.win, self.prev_cursor)
819+
end
817820
end
818821
local input_win = self.fzf_state.win
819822
self.fzf_state:gc()

0 commit comments

Comments
 (0)