summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rc/tools/git.kak2
-rwxr-xr-xtest/run2
-rw-r--r--test/tools/git/blame-in-diff/script4
3 files changed, 4 insertions, 4 deletions
diff --git a/rc/tools/git.kak b/rc/tools/git.kak
index ac349a97..def591d8 100644
--- a/rc/tools/git.kak
+++ b/rc/tools/git.kak
@@ -224,7 +224,7 @@ define-command -params 1.. \
execute-keys <a-l><semicolon><a-?>^commit<ret><a-semicolon>
} catch %{
# Missing commit line, assume it is an uncommitted change.
- execute-keys <a-l><semicolon><a-?>\A<ret><a-semicolon>
+ execute-keys <a-l><semicolon>Gg<a-semicolon>
}
require-module diff
try %{
diff --git a/test/run b/test/run
index e26aea05..a65f5396 100755
--- a/test/run
+++ b/test/run
@@ -193,7 +193,7 @@ ui_out() {
-until)
shift
while read -r event <&4; do
- [ "$event" == "$1" ] && break
+ [ "$event" = "$1" ] && break
done
;;
-until-grep)
diff --git a/test/tools/git/blame-in-diff/script b/test/tools/git/blame-in-diff/script
index 6adda922..e22b3ec8 100644
--- a/test/tools/git/blame-in-diff/script
+++ b/test/tools/git/blame-in-diff/script
@@ -1,9 +1,9 @@
-ui_out -until '{ "jsonrpc": "2.0", "method": "refresh", "params": [true] }'
+ui_out -until '{ "jsonrpc": "2.0", "method": "refresh", "params": [false] }'
# We've jumped to the new version of line 2. Move to the old version so we
# can annotate the old file.
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "k:git blame<ret>" ] }'
-ui_out -until '{ "jsonrpc": "2.0", "method": "refresh", "params": [false] }'
+while ui_out -until-grep '"draw_status"' | grep '\[fifo\]'; do :; done > /dev/null
# We should have jumped to the old version of line 2, assert on kak_selection.
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ "x" ] }'