Skip to content

Commit

Permalink
refactor: make empty table check more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc authored Jan 22, 2025
1 parent 7643139 commit ae0482d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/quicker/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ M.open = function(opts)
})
end

if next(opts.view) then
if not vim.tbl_isempty(opts.view) then
vim.fn.winrestview(opts.view)
end

Expand Down

0 comments on commit ae0482d

Please sign in to comment.