style: Normalize indentation and other whitespace

fix-tmux-next-3dot4
Caleb Maclennan 3 years ago
parent a2ab8880a1
commit 3a1aad8752
No known key found for this signature in database
GPG Key ID: 63CC496475267693

@ -35,11 +35,11 @@ command -bar VimuxClearRunnerHistory :call VimuxClearRunnerHistory()
command -bar VimuxTogglePane :call VimuxTogglePane() command -bar VimuxTogglePane :call VimuxTogglePane()
function! VimuxRunCommandInDir(command, useFile) function! VimuxRunCommandInDir(command, useFile)
let l:file = '' let l:file = ''
if a:useFile ==# 1 if a:useFile ==# 1
let l:file = shellescape(expand('%:t'), 1) let l:file = shellescape(expand('%:t'), 1)
endif endif
call VimuxRunCommand('(cd '.shellescape(expand('%:p:h'), 1).' && '.a:command.' '.l:file.')') call VimuxRunCommand('(cd '.shellescape(expand('%:p:h'), 1).' && '.a:command.' '.l:file.')')
endfunction endfunction
function! VimuxRunLastCommand() function! VimuxRunLastCommand()
@ -114,11 +114,11 @@ endfunction
function! VimuxTogglePane() function! VimuxTogglePane()
if exists('g:VimuxRunnerIndex') if exists('g:VimuxRunnerIndex')
if s:VimuxRunnerType() ==# 'window' if s:VimuxRunnerType() ==# 'window'
call s:VimuxTmux('join-pane -d -s '.g:VimuxRunnerIndex.' -p '.s:VimuxOption('g:VimuxHeight', 20)) call s:VimuxTmux('join-pane -d -s '.g:VimuxRunnerIndex.' -p '.s:VimuxOption('g:VimuxHeight', 20))
let g:VimuxRunnerType = 'pane' let g:VimuxRunnerType = 'pane'
elseif s:VimuxRunnerType() ==# 'pane' elseif s:VimuxRunnerType() ==# 'pane'
let g:VimuxRunnerIndex=substitute(s:VimuxTmux('break-pane -d -t '.g:VimuxRunnerIndex." -P -F '#{window_id}'"), '\n', '', '') let g:VimuxRunnerIndex=substitute(s:VimuxTmux('break-pane -d -t '.g:VimuxRunnerIndex." -P -F '#{window_id}'"), '\n', '', '')
let g:VimuxRunnerType = 'window' let g:VimuxRunnerType = 'window'
endif endif
endif endif
endfunction endfunction
@ -245,7 +245,7 @@ function! s:VimuxRunnerType()
endfunction endfunction
function! s:VimuxTmuxProperty(property) function! s:VimuxTmuxProperty(property)
return substitute(s:VimuxTmux("display -p '".a:property."'"), '\n$', '', '') return substitute(s:VimuxTmux("display -p '".a:property."'"), '\n$', '', '')
endfunction endfunction
function! s:VimuxHasRunner(index) function! s:VimuxHasRunner(index)

Loading…
Cancel
Save