Skip to content

Commit cce8466

Browse files
committed
Move the cheese, because it has to move to run
As anybody following this might have divined, my testing was flawed and I was running different code than I was viewing.
1 parent 71f28c8 commit cce8466

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

plugin/vimux.vim

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ if exists("g:loaded_vimux") || &cp
33
endif
44
let g:loaded_vimux = 1
55

6+
function! _VimuxOption(option, default)
7+
if exists(a:option)
8+
return eval(a:option)
9+
else
10+
return a:default
11+
endif
12+
endfunction
13+
614
function! _VimuxTmuxCmd()
715
return _VimuxOption("g:VimuxTmuxCommand", "tmux")
816
endfunction
@@ -204,14 +212,6 @@ function! _VimuxRunnerType()
204212
return _VimuxOption("g:VimuxRunnerType", "pane")
205213
endfunction
206214

207-
function! _VimuxOption(option, default)
208-
if exists(a:option)
209-
return eval(a:option)
210-
else
211-
return a:default
212-
endif
213-
endfunction
214-
215215
function! _VimuxTmuxProperty(property)
216216
return substitute(_VimuxTmux("display -p '".a:property."'"), '\n$', '', '')
217217
endfunction

0 commit comments

Comments
 (0)