Skip to content

Commit

Permalink
Handle VimResize event per buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtom committed Sep 20, 2012
1 parent 4617beb commit 9c73ca3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion autoload/tlib/World.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2007-05-01.
" @Last Change: 2012-09-20.
" @Revision: 0.1.1112
" @Revision: 0.1.1113

" :filedoc:
" A prototype used by |tlib#input#List|.
Expand Down Expand Up @@ -667,6 +667,7 @@ endf
function! s:prototype.UseInputListScratch() dict "{{{3
let scratch = self.UseScratch()
if !exists('b:tlib_list_init')
autocmd TLib VimResized <buffer> call feedkeys("\<c-j>", 't')
let b:tlib_list_init = 1
endif
if !exists('w:tlib_list_init')
Expand Down
4 changes: 1 addition & 3 deletions autoload/tlib/input.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2007-06-30.
" @Last Change: 2012-09-20.
" @Revision: 0.0.957
" @Revision: 0.0.958


" :filedoc:
Expand Down Expand Up @@ -153,7 +153,6 @@ function! tlib#input#ListW(world, ...) "{{{3
let @/ = ''
let dlist = []
" let &laststatus = 2
autocmd TLib VimResized * call feedkeys("\<c-j>", 't')

try
while !empty(world.state) && world.state !~ '^exit' && (world.show_empty || !empty(world.base))
Expand Down Expand Up @@ -542,7 +541,6 @@ function! tlib#input#ListW(world, ...) "{{{3

finally
call world.Leave()
autocmd! TLib VimResized

" TLogVAR statusline
" let &l:statusline = statusline
Expand Down

0 comments on commit 9c73ca3

Please sign in to comment.