>
> Can you still reproduce the problem when removing some of the lines?
> E.g., is the "set bt=nofile" required?
>
OK, I refined the Test() a little and it can still produce the problem.
But this time, the testing commands needs some changes for cooperating:
(I assume there is neither 'Main' nor 'Log' in your current directory)
$ vim -u NONE -o Main Log -S test.vim
$ cat test.vim
fun! BuildLines(prefix)
let a = []
for i in range(1, 100)
call add(a, a:prefix . ": This is line " . i)
endfor
return a
endfun
breakadd func 9 Test
fun! Test()
let a=BuildLines("Main")
call append(0, a)
normal 50G
normal zb
let win_no = bufwinnr("Log")
if win_no != -1
exe win_no . "wincmd w"
redraw! " Let's see if 'zb' took effects (i.e. 50th lines at bottom)
wincmd J " NOTE: Trigger the problem.
redraw! " Let's see if the 50th line have got moved.
endif
endfun
call Test()
--
Dasn
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---