Skip to content

Commit 1b38911

Browse files
committed
Disallow chaining VimuxRunCommand and VimuxPromptCommand
Fixes #185 Vim does not allow escaping some characters in commands that can be chained. In particular bars are disallowed and double quotes begin code comments. Both of these things are regular features in shell command strings. I'm disallowing chaining for the two commands that take shell commands as arguments so they can be used sensibly again. One solution to allow this might be to have a ...Bar version of each. It might also be possible to work around this with `:call` and functions instead of commands.
1 parent 9214bf9 commit 1b38911

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/vimux.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if !executable(VimuxOption('VimuxTmuxCommand'))
2424
finish
2525
endif
2626

27-
command -bar -nargs=* VimuxRunCommand :call VimuxRunCommand(<args>)
27+
command -nargs=* VimuxRunCommand :call VimuxRunCommand(<args>)
2828
command -bar VimuxRunLastCommand :call VimuxRunLastCommand()
2929
command -bar VimuxOpenRunner :call VimuxOpenRunner()
3030
command -bar VimuxCloseRunner :call VimuxCloseRunner()
@@ -33,7 +33,7 @@ command -bar VimuxInspectRunner :call VimuxInspectRunner()
3333
command -bar VimuxScrollUpInspect :call VimuxScrollUpInspect()
3434
command -bar VimuxScrollDownInspect :call VimuxScrollDownInspect()
3535
command -bar VimuxInterruptRunner :call VimuxInterruptRunner()
36-
command -bar -nargs=? VimuxPromptCommand :call VimuxPromptCommand(<args>)
36+
command -nargs=? VimuxPromptCommand :call VimuxPromptCommand(<args>)
3737
command -bar VimuxClearTerminalScreen :call VimuxClearTerminalScreen()
3838
command -bar VimuxClearRunnerHistory :call VimuxClearRunnerHistory()
3939
command -bar VimuxTogglePane :call VimuxTogglePane()

0 commit comments

Comments
 (0)