Skip to content

Commit 566833e

Browse files
committed
style: Format each function as a paragraph with no blanks
1 parent 43681e9 commit 566833e

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

plugin/vimux.vim

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,14 @@ function! VimuxRunCommand(command, ...)
5454
if !exists('g:VimuxRunnerIndex') || s:hasRunner(g:VimuxRunnerIndex) ==# -1
5555
call VimuxOpenRunner()
5656
endif
57-
5857
let l:autoreturn = 1
5958
if exists('a:1')
6059
let l:autoreturn = a:1
6160
endif
62-
6361
let resetSequence = VimuxOption('g:VimuxResetSequence', 'q C-u')
6462
let g:VimuxLastCommand = a:command
65-
6663
call VimuxSendKeys(resetSequence)
6764
call VimuxSendText(a:command)
68-
6965
if l:autoreturn ==# 1
7066
call VimuxSendKeys('Enter')
7167
endif
@@ -85,7 +81,6 @@ endfunction
8581

8682
function! VimuxOpenRunner()
8783
let nearestIndex = s:nearestIndex()
88-
8984
if VimuxOption('g:VimuxUseNearest', 1) ==# 1 && nearestIndex != -1
9085
let g:VimuxRunnerIndex = nearestIndex
9186
else
@@ -97,7 +92,6 @@ function! VimuxOpenRunner()
9792
elseif s:runnerType() ==# 'window'
9893
call s:tmux('new-window '.extraArguments)
9994
endif
100-
10195
let g:VimuxRunnerIndex = s:tmuxIndex()
10296
call s:setRunnerName()
10397
call s:tmux('last-'.s:runnerType())
@@ -203,13 +197,11 @@ function! s:nearestIndex()
203197
let t = s:runnerType()
204198
let filter = s:getTargetFilter()
205199
let views = split(s:tmux('list-'.t."s -F '#{".t.'_active}:#{'.t."_id}'".filter), '\n')
206-
207200
for view in views
208201
if match(view, '1:') ==# -1
209202
return split(view, ':')[1]
210203
endif
211204
endfor
212-
213205
return -1
214206
endfunction
215207

@@ -229,7 +221,7 @@ endfunction
229221
function! s:setRunnerName()
230222
let targetName = VimuxOption('g:VimuxRunnerName', '')
231223
if targetName ==# ''
232-
return
224+
return
233225
endif
234226
let t = s:runnerType()
235227
if t ==# 'window'
@@ -239,7 +231,6 @@ function! s:setRunnerName()
239231
endif
240232
endfunction
241233

242-
243234
function! s:runnerType()
244235
return VimuxOption('g:VimuxRunnerType', 'pane')
245236
endfunction

0 commit comments

Comments
 (0)