On 02/07/2015 03:59 PM, Bram Moolenaar wrote:
>> Charles Campbell wrote:
>>
>>> Looks like patch#592 stops netrw from working with remote files:  vim
>>> scp://hostname/   no longer works.
>>
>> What this patch does is that when ":e filename" is used when the
>> 'buftype' is not a file, it does not empty the buffer.  Is netrw somehow
>> depending on this side effect, or did the patch change more than
>> intended?
>
> Unfortunately Charles does not have time to look into this right now.
> Can someone else have a look?
>


What about adding a 'nostat' type to the 'buftype' option and saying in the
documentation that 'nofile' is now deprecated because the 'edit' command on a
'nofile' buffer empties its content when editing the same buffer but does not
change its content when editing a different buffer than the current one.

There would be only a change in bt_nofile(), in bt_dontwrite() and two other
places, to make 'nostat' behave like 'nofile'. And the change made in 7.4.592
would only be done for 'nostat'.

I can work on a patch if this seems reasonable.

Xavier

--
--
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui