avoid flicker when operating

- use `redraw` instead `redraw!`
- closes #90
This commit is contained in:
gmarik 2011-10-03 17:50:15 -05:00
parent cae6df72cf
commit 304e63642b
2 changed files with 8 additions and 8 deletions

View File

@ -15,13 +15,13 @@ endf
func! s:process(bang, cmd) func! s:process(bang, cmd)
let msg = '' let msg = ''
redraw! redraw
sleep 1m sleep 1m
let lines = (getline('.','$')[0:-2]) let lines = (getline('.','$')[0:-2])
for line in lines for line in lines
redraw! redraw
exec ':norm '.a:cmd exec ':norm '.a:cmd
@ -35,7 +35,7 @@ func! s:process(bang, cmd)
setl nomodified setl nomodified
endfor endfor
redraw! redraw
echo 'Done! '.msg echo 'Done! '.msg
endf endf
@ -51,7 +51,7 @@ func! vundle#installer#run(func_name, name, ...) abort
call s:sign(status) call s:sign(status)
redraw! redraw
if 'updated' == status if 'updated' == status
echo n.' installed' echo n.' installed'
@ -118,7 +118,7 @@ endf
func! vundle#installer#list(bang) abort func! vundle#installer#list(bang) abort
let bundles = vundle#scripts#bundle_names(map(copy(g:bundles), 'v:val.name_spec')) let bundles = vundle#scripts#bundle_names(map(copy(g:bundles), 'v:val.name_spec'))
call vundle#scripts#view('list', ['" My Bundles'], bundles) call vundle#scripts#view('list', ['" My Bundles'], bundles)
redraw! redraw
echo len(g:bundles).' bundles configured' echo len(g:bundles).' bundles configured'
endf endf
@ -137,7 +137,7 @@ func! vundle#installer#clean(bang) abort
end end
call vundle#scripts#view('clean', headers, names) call vundle#scripts#view('clean', headers, names)
redraw! redraw
if (a:bang || empty(names) || input('Continue ? [ y/n ]:') =~? 'y') if (a:bang || empty(names) || input('Continue ? [ y/n ]:') =~? 'y')
call s:process(a:bang, 'D') call s:process(a:bang, 'D')

View File

@ -9,13 +9,13 @@ func! vundle#scripts#all(bang, ...)
let b:match = a:1 let b:match = a:1
endif endif
call vundle#scripts#view('search',info, vundle#scripts#bundle_names(reverse(matches))) call vundle#scripts#view('search',info, vundle#scripts#bundle_names(reverse(matches)))
redraw! redraw
echo len(matches).' bundles found' echo len(matches).' bundles found'
endf endf
func! vundle#scripts#reload() abort func! vundle#scripts#reload() abort
silent exec ':BundleSearch! '.(exists('b:match') ? b:match : '') silent exec ':BundleSearch! '.(exists('b:match') ? b:match : '')
redraw! redraw
endf endf
func! vundle#scripts#complete(a,c,d) func! vundle#scripts#complete(a,c,d)