File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,15 @@ if exists("g:loaded_vimux") || &cp
3
3
endif
4
4
let g: loaded_vimux = 1
5
5
6
+ function ! _VimuxTmuxCmd ()
7
+ return _VimuxOption (" g:VimuxTmuxCommand" , " tmux" )
8
+ endfunction
9
+
10
+ if ! executable (_VimuxTmuxCmd ())
11
+ echohl ErrorMsg | echomsg " Failed to find executable " ._VimuxTmuxCmd () | echohl None
12
+ finish
13
+ endif
14
+
6
15
command -nargs =* VimuxRunCommand :call VimuxRunCommand (<args> )
7
16
command VimuxRunLastCommand :call VimuxRunLastCommand ()
8
17
command VimuxCloseRunner :call VimuxCloseRunner ()
@@ -146,8 +155,7 @@ function! VimuxPromptCommand(...)
146
155
endfunction
147
156
148
157
function ! _VimuxTmux (arguments)
149
- let l: command = _VimuxOption (" g:VimuxTmuxCommand" , " tmux" )
150
- return system (l: command ." " .a: arguments )
158
+ return system (_VimuxTmuxCmd ()." " .a: arguments )
151
159
endfunction
152
160
153
161
function ! _VimuxTmuxSession ()
You can’t perform that action at this time.
0 commit comments