denis wrote:
> Hello,
> 
> I am seeing a problem where execution of seemingly unrelated commands
> causes a problem with resetting 'lines' variable
> 
> " here, lines is set to 23
> let g:foo = tempname()
> call system('touch ' . g:foo)
> " here it is reset to the height of my xterm - in this case 50
> 
> eh? is this a bug or a feature?

It's a feature.
The point is that terminal might be resized when running
the external command so VIM will try to re-detect it
after executing any external command.

Detection of the terminal size is described in
:he window-size


-- 
Beating the averages: http://www.paulgraham.com/avg.html
Python paradox:       http://www.paulgraham.com/pypar.html
Bad Vista:            http://badvista.org/
XML sucks:            http://c2.com/cgi/wiki?XmlSucks
For robots (please don't mail me there): [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui