about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2022-01-29 12:47:54 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2022-01-29 16:01:39 +0000
commit42f1e99f816d7b8d2376caea69d0acd85ee729a4 (patch)
treeae6cdadbd4d1e77c00231229db514f65ee88f16b /Functions
parentc055c6464de20da13a6c805f017543f94b6e0ca9 (diff)
downloadzsh-42f1e99f816d7b8d2376caea69d0acd85ee729a4.tar.gz
zsh-42f1e99f816d7b8d2376caea69d0acd85ee729a4.tar.xz
zsh-42f1e99f816d7b8d2376caea69d0acd85ee729a4.zip
unposted: vcs_info git: Deconfuse $EDITOR
Work around <https://github.com/chrisbra/vim-zsh/issues/39>.
Diffstat (limited to 'Functions')
-rw-r--r--Functions/VCS_Info/Backends/VCS_INFO_get_data_git4
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
index eb04d4b41..ba588c874 100644
--- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
+++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
@@ -207,7 +207,7 @@ elif [[ -d "${gitdir}/rebase-merge" ]]; then
                 # Comment line.  Skip.
                 return 0
                 ;; 
-            ((p|pick|e|edit|r|reword|f|fixup|s|squash)' '*)
+            (''(p|pick|e|edit|r|reword|f|fixup|s|squash)' '*)
                 # The line is of the form "pick $hash $subject".
                 # Just strip the verb and we're good to go.
                 p=${p#* }
@@ -230,7 +230,7 @@ elif [[ -d "${gitdir}/rebase-merge" ]]; then
                         p="${p%% *} ?"
                 fi
                 ;;
-            ((x|exec) *)
+            (''(x|exec) *)
                 # The line is of the form 'exec foo bar baz' where 'foo bar
                 # baz' is a shell command.  There's no way to map _that_ to
                 # "$hash $subject", but I hope this counts as making an effort.