summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2024-02-25 17:43:10 +0100
committerMaxime Coste <mawww@kakoune.org>2024-02-26 19:09:36 +1100
commitb8f76c6e1a4cb5552212d772126e0e98afaafa78 (patch)
tree25973addc4430ecd1984510d20a75168afa9eb10 /rc
parent8a7641284cb6bbc614cd2088f78d6a7f03e49b99 (diff)
rc diff: plug register leak
Commit 36efbf4cb (rc filetype diff: extract diff parsing from diff-jump, 2024-02-03) moved the "set-register |" command but failed to move the "-save-regs |". This surfaces as register leakage in "git blame-jump". Fix that.
Diffstat (limited to 'rc')
-rw-r--r--rc/filetype/diff.kak4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/filetype/diff.kak b/rc/filetype/diff.kak
index 530bf308..baa65992 100644
--- a/rc/filetype/diff.kak
+++ b/rc/filetype/diff.kak
@@ -29,7 +29,7 @@ define-command diff-jump -params .. -docstring %{
- jump to the old file instead of the new file
-<num> strip <num> leading directory components, like -p<num> in patch(1). Defaults to 1 if there is a 'diff' line (as printed by 'diff -r'), or 0 otherwise.
} %{
- evaluate-commands -draft -save-regs c| %{
+ evaluate-commands -draft -save-regs c %{
# Save the column because we will move the cursor.
set-register c %val{cursor_column}
# If there is a "diff" line, we don't need to look further back.
@@ -93,7 +93,7 @@ define-command diff-jump -params .. -docstring %{
complete-command diff-jump file
define-command -hidden diff-parse -params 2.. %{
- evaluate-commands -save-regs ae %{
+ evaluate-commands -save-regs ae| %{
set-register a %arg{@}
set-register e nop
set-register | %{