Skip to content

Commit

Permalink
fix: when jumplist or changelist is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
phanen authored and ibhagwan committed Aug 29, 2024
1 parent 715e721 commit 290a442
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/fzf-lua/providers/nvim.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ M.jumps = function(opts)
text))
end

if utils.tbl_isempty(entries) then
utils.info(("%s list is empty."):format(opts.h1 or "jump"))
return
end

table.insert(entries, 1,
string.format("%6s %s %s %s", opts.h1 or "jump", "line", "col", "file/text"))

Expand Down

0 comments on commit 290a442

Please sign in to comment.