mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-26 21:22:00 +03:00
Fix git-tools.kak use of $@
This commit is contained in:
parent
956c0e32e8
commit
220458839d
@ -167,7 +167,7 @@ Available commands:\n add\n rm\n blame\n commit\n checkout\n diff\n hide-
|
|||||||
msgfile="$(git rev-parse --git-dir)/COMMIT_EDITMSG"
|
msgfile="$(git rev-parse --git-dir)/COMMIT_EDITMSG"
|
||||||
printf %s "edit '$msgfile'
|
printf %s "edit '$msgfile'
|
||||||
hook buffer BufWritePost '.*\Q$msgfile\E' %{ %sh{
|
hook buffer BufWritePost '.*\Q$msgfile\E' %{ %sh{
|
||||||
if git commit -F '$msgfile' --cleanup=strip $@ > /dev/null; then
|
if git commit -F '$msgfile' --cleanup=strip $* > /dev/null; then
|
||||||
printf %s 'evaluate-commands -client $kak_client echo -markup %{{Information}Commit succeeded}; delete-buffer'
|
printf %s 'evaluate-commands -client $kak_client echo -markup %{{Information}Commit succeeded}; delete-buffer'
|
||||||
else
|
else
|
||||||
printf %s 'evaluate-commands -client $kak_client echo -markup %{{Error}Commit failed}'
|
printf %s 'evaluate-commands -client $kak_client echo -markup %{{Error}Commit failed}'
|
||||||
|
Loading…
Reference in New Issue
Block a user