Permalink
Browse files

Handle VimResize event per buffer

  • Loading branch information...
1 parent 4617beb commit 9c73ca3874d64953e2d61c9f4d830b4644562a07 @tomtom committed Sep 20, 2012
Showing with 3 additions and 4 deletions.
  1. +2 −1 autoload/tlib/World.vim
  2. +1 −3 autoload/tlib/input.vim
View
@@ -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|.
@@ -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')
View
@@ -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:
@@ -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))
@@ -542,7 +541,6 @@ function! tlib#input#ListW(world, ...) "{{{3
finally
call world.Leave()
- autocmd! TLib VimResized
" TLogVAR statusline
" let &l:statusline = statusline

0 comments on commit 9c73ca3

Please sign in to comment.