Skip to content

Commit

Permalink
style(menu): make once=true autocmd option clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
bekaboo committed Jan 24, 2024
1 parent d197d2c commit 1a28010
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/dropbar/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,7 @@ function dropbar_menu_t:fuzzy_find_open(opts)
vim.api.nvim_create_autocmd({ 'BufUnload', 'BufWinLeave', 'WinLeave' }, {
group = augroup,
buffer = buf,
once = true,
callback = function()
if prev_cursor and vim.api.nvim_win_is_valid(self.win) then
vim.schedule(function()
Expand Down

0 comments on commit 1a28010

Please sign in to comment.