summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2025-03-24 01:35:31 +0100
committerMaxime Coste <mawww@kakoune.org>2025-03-25 08:11:04 +1100
commitf1ce997cc4175ffc00e6f789e8a92c8afe4d811a (patch)
treec986fb3e984a46c56f2ca458e98744653c2dd4b6 /doc
parentb242a4e049cb94e304183472ab81b027d67c31d6 (diff)
rc git: display error from git blame immediately
When "git blame" fails, it prints an error message to the status line via a NormalIdle hook. But the hook is only necessary for "execute-keys vv". (as a workaround for https://github.com/mawww/kakoune/issues/5082). Since we run "git blame" in the background, it will not trigger a NormalIdle hook when finished. This means that the "failed to run git blame" message will only be shown after the next key press. This problem can be reproduced by first adding a sleep here: diff --git a/rc/tools/git.kak b/rc/tools/git.kak index 05e6ff144..bd899365f 100644 --- a/rc/tools/git.kak +++ b/rc/tools/git.kak @@ -301,4 +301,5 @@ define-command -params 1.. \ echo 'echo -markup {Information}Press <ret> to jump to blamed commit' ( + sleep .1 trap - INT QUIT if [ -z "${kak_opt_git_blob}" ]; then and then running ':git blame' in a file that is not Git-tracked. Reduce the scope of the hook to show this error message immediately.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions