In the following test case, 'foobar' and  'dummy_file' are two non-existent 
files:

gvim -o foobar dummy_file
  :set buftype=nofile
  :call append(1, "second line")    -> foobar contains now two lines
  <CTRL-W> W
  :edit foobar                      -> a) foobar still contains two lines
  :edit foobar                      -> b) Ooops... foobar contains no lines now 
!

The problem is that do_ecmd() does not handle this case in a consistent way, 
whether:
1) foobar is not curbuf and therefore 'other_file' is true (in case (a) above)
2) or foobar is curbuf and therefore 'other_file' is false (in case (b) above) 
in which case buf_clear_file(curbuf) is invoked by do_ecmd()

--
Xavier

Les Chemins de Lokoti: http://lokoti.alwaysdata.net

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui