Merge pull request #59 from IngoHeimbach/feature/speedup-shell-terminal

Do not execute autocommands when writing lines to vebugger buffers
This commit is contained in:
Idan Arye 2018-05-23 16:32:05 +03:00 committed by GitHub
commit f881b44b4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -148,7 +148,7 @@ function! s:f_debugger.addLineToTerminal(pipeName,line) dict
if has_key(self,'terminalBuffer')
let l:bufwin=bufwinnr(self.terminalBuffer)
if -1<l:bufwin
exe l:bufwin.'wincmd w'
exe 'noautocmd '.l:bufwin.'wincmd w'
if has_key(self,'pipes')
\&&has_key(self.pipes,a:pipeName)
\&&has_key(self.pipes[a:pipeName],'annotation')
@ -157,7 +157,7 @@ function! s:f_debugger.addLineToTerminal(pipeName,line) dict
call append (line('$'),a:line)
endif
normal G
wincmd p
noautocmd wincmd p
endif
endif
endfunction

View File

@ -142,10 +142,10 @@ function! s:standardFunctions.addLineToShellBuffer(line) dict
if has_key(self,'shellBuffer')
let l:bufwin=bufwinnr(self.shellBuffer)
if -1<l:bufwin
exe l:bufwin.'wincmd w'
exe 'noautocmd '.l:bufwin.'wincmd w'
call append (line('$'),a:line)
normal G
wincmd p
noautocmd wincmd p
endif
endif
endfunction