fix(fugitive): filetype attach fixes #205
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/diffs.nvim!205
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/git-filetype-guard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem:
:Git show(and similar fugitive commands) creates tempbuffers under
/tmp/withfiletype=gitinstead offugitive://URIs. The
is_fugitive_buffercheck only matched^fugitive://,so these buffers were silently skipped by the
FileTypeautocmd.Solution: also check
vim.b.git_dirwhich fugitive sets on all itsmanaged buffers, including temp output buffers from
:Gitcommands.