Closed sak96 closed 1 year ago
Thanks for a helpful report, should be fixed now.
The fix was so simple ? i could have raised a pr. i was not able to follow the command completely so i just did not bother to think about the fix.
Calling shell to execute: " vifm /tmp/temp/temp '--choose-files' '/tmp/v9q6zuF/8' '--on-choose' 'echo $VIFM_OPEN_TYPE >/tmp/v9q6zuF/9' '+command EditVim :let $VIFM_OPEN_TYPE='\''edit'\'' | execute '\''cnoremap j <cr>'\'' | normal gs:editj' '+command VsplitVim :let $VIFM_OPEN_TYPE='\''vsplit'\'' | execute '\''cnoremap j <cr>'\'' | normal gs:editj' '+command SplitVim :let $VIFM_OPEN_TYPE='\''split'\'' | execute '\''cnoremap j <cr>'\'' | normal gs:editj' '+command DiffVim :let $VIFM_OPEN_TYPE='\''vert diffsplit'\'' | execute '\''cnoremap j <cr>'\'' | normal gs:editj' '+command PeditVim :let $VIFM_OPEN_TYPE='\''pedit'\'' | execute '\''cnoremap j <cr>'\'' | normal gs:editj' '+command TabVim :let $VIFM_OPEN_TYPE='\''tablast | tab drop'\'' | execute '\''cnoremap j <cr>'\'' | normal gs:editj'"
Thanks for fixing it so quickly :grinning:
I didn't actually know there is an auto-command for :!
until now, just avoid triggering it.
However, gitgutter seems to be a problematic plugin as that auto-command can break many different things and should be updated to fix that.
Reproduce
code which fails
The vifm will fail here.
The function call happens here.
The Probable Cause
v:shell_error
is not exit code of vifm but exit code of gitgutter shell cmd which runs thanks to autocmd.