Skip to content

Commit

Permalink
chore: prioritize preview_pager over preview opts.pager
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Dec 8, 2023
1 parent 6583f80 commit 4fae64e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/fzf-lua/previewer/codeaction.lua
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function M.native:new(o, opts, fzf_win)
assert(opts._ui_select and opts._ui_select.kind == "codeaction")
M.native.super.new(self, o, opts, fzf_win)
setmetatable(self, M.native)
self.pager = o.pager or opts.preview_pager
self.pager = opts.preview_pager == nil and o.pager or opts.preview_pager
self.diff_opts = o.diff_opts
return self
end
Expand Down
2 changes: 1 addition & 1 deletion lua/fzf-lua/previewer/fzf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function Previewer.git_diff:new(o, opts)
self.cmd_deleted = path.git_cwd(o.cmd_deleted, opts)
self.cmd_modified = path.git_cwd(o.cmd_modified, opts)
self.cmd_untracked = path.git_cwd(o.cmd_untracked, opts)
self.pager = o.pager or opts.preview_pager
self.pager = opts.preview_pager == nil and o.pager or opts.preview_pager
do
-- populate the icon mappings
local icons_overrides = o._fn_git_icons and o._fn_git_icons()
Expand Down

0 comments on commit 4fae64e

Please sign in to comment.