@@ -35,11 +35,11 @@ command -bar VimuxClearRunnerHistory :call VimuxClearRunnerHistory()
35
35
command - bar VimuxTogglePane :call VimuxTogglePane ()
36
36
37
37
function ! VimuxRunCommandInDir (command , useFile)
38
- let l: file = ' '
39
- if a: useFile == # 1
40
- let l: file = shellescape (expand (' %:t' ), 1 )
41
- endif
42
- call VimuxRunCommand (' (cd ' .shellescape (expand (' %:p:h' ), 1 ).' && ' .a: command .' ' .l: file .' )' )
38
+ let l: file = ' '
39
+ if a: useFile == # 1
40
+ let l: file = shellescape (expand (' %:t' ), 1 )
41
+ endif
42
+ call VimuxRunCommand (' (cd ' .shellescape (expand (' %:p:h' ), 1 ).' && ' .a: command .' ' .l: file .' )' )
43
43
endfunction
44
44
45
45
function ! VimuxRunLastCommand ()
@@ -114,11 +114,11 @@ endfunction
114
114
function ! VimuxTogglePane ()
115
115
if exists (' g:VimuxRunnerIndex' )
116
116
if s: VimuxRunnerType () == # ' window'
117
- call s: VimuxTmux (' join-pane -d -s ' .g: VimuxRunnerIndex .' -p ' .s: VimuxOption (' g:VimuxHeight' , 20 ))
118
- let g: VimuxRunnerType = ' pane'
117
+ call s: VimuxTmux (' join-pane -d -s ' .g: VimuxRunnerIndex .' -p ' .s: VimuxOption (' g:VimuxHeight' , 20 ))
118
+ let g: VimuxRunnerType = ' pane'
119
119
elseif s: VimuxRunnerType () == # ' pane'
120
- let g: VimuxRunnerIndex= substitute (s: VimuxTmux (' break-pane -d -t ' .g: VimuxRunnerIndex ." -P -F '#{window_id}'" ), ' \n' , ' ' , ' ' )
121
- let g: VimuxRunnerType = ' window'
120
+ let g: VimuxRunnerIndex= substitute (s: VimuxTmux (' break-pane -d -t ' .g: VimuxRunnerIndex ." -P -F '#{window_id}'" ), ' \n' , ' ' , ' ' )
121
+ let g: VimuxRunnerType = ' window'
122
122
endif
123
123
endif
124
124
endfunction
@@ -245,7 +245,7 @@ function! s:VimuxRunnerType()
245
245
endfunction
246
246
247
247
function ! s: VimuxTmuxProperty (property)
248
- return substitute (s: VimuxTmux (" display -p '" .a: property ." '" ), ' \n$' , ' ' , ' ' )
248
+ return substitute (s: VimuxTmux (" display -p '" .a: property ." '" ), ' \n$' , ' ' , ' ' )
249
249
endfunction
250
250
251
251
function ! s: VimuxHasRunner (index )
0 commit comments