Skip to content

Commit

Permalink
fix(git_commits): invalid width with git-delta (closes #1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Feb 2, 2024
1 parent 9c005ec commit fd567e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/fzf-lua/providers/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ M.commits = function(opts)
if opts.preview_pager then
opts.preview = string.format("%s | %s", opts.preview, opts.preview_pager)
end
if vim.o.shell and vim.o.shell:match("fish$") then
-- TODO: why does fish shell refuse to pass along $COLUMNS
-- to delta while the same exact commands works with bcommits?
opts.preview = "sh -c " .. libuv.shellescape(opts.preview)
end
end
opts = core.set_header(opts, opts.headers or { "actions", "cwd" })
return git_cmd(opts)
Expand Down

0 comments on commit fd567e0

Please sign in to comment.