1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-25 21:16:38 +03:00

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.
This commit is contained in:
Johannes Altmanninger 2024-09-14 12:22:13 +02:00 committed by Maxime Coste
parent 54992c08ae
commit b0e21a150e

View File

@ -296,7 +296,9 @@ define-command -params 1.. \
echo 'echo -markup {Information}Press <ret> to jump to blamed commit' echo 'echo -markup {Information}Press <ret> to jump to blamed commit'
( (
trap - INT QUIT trap - INT QUIT
cd_bufdir if [ -z "${kak_opt_git_blob}" ]; then
cd_bufdir
fi
printf %s "evaluate-commands -client '$kak_client' %{ printf %s "evaluate-commands -client '$kak_client' %{
set-option buffer=$kak_bufname git_blame_flags '$kak_timestamp' set-option buffer=$kak_bufname git_blame_flags '$kak_timestamp'
set-option buffer=$kak_bufname git_blame_index '$kak_timestamp' set-option buffer=$kak_bufname git_blame_index '$kak_timestamp'