summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2024-09-14 12:22:13 +0200
committerMaxime Coste <mawww@kakoune.org>2024-09-16 15:24:20 +1000
commitb0e21a150eaa9c52c88350b958f0a0fa5058a6c1 (patch)
tree912ac9d76466a0207ef72c0ae815267719f5429f /rc
parent54992c08aecb2fc91aecacccc15d3a17ae7390dc (diff)
Fix "git blame" inside "git blame-jump" diff buffers
I used to use a patch that removes cd_bufdir so I didn't notice this being broken for *git* buffers.
Diffstat (limited to 'rc')
-rw-r--r--rc/tools/git.kak4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc/tools/git.kak b/rc/tools/git.kak
index b98974d1..828d3c15 100644
--- a/rc/tools/git.kak
+++ b/rc/tools/git.kak
@@ -296,7 +296,9 @@ define-command -params 1.. \
echo 'echo -markup {Information}Press <ret> to jump to blamed commit'
(
trap - INT QUIT
- cd_bufdir
+ if [ -z "${kak_opt_git_blob}" ]; then
+ cd_bufdir
+ fi
printf %s "evaluate-commands -client '$kak_client' %{
set-option buffer=$kak_bufname git_blame_flags '$kak_timestamp'
set-option buffer=$kak_bufname git_blame_index '$kak_timestamp'