On Tue, Jan 27, 2015 at 11:26:39AM +0100, Bram Moolenaar wrote:
> 
> Patch 7.4.592
> Problem:    When doing ":e foobar" when already editing "foobar" and 'buftype'
>           is "nofile" the buffer is cleared. (Xavier de Gaye)
> Solution:   Do no clear the buffer.
> Files:            src/ex_cmds.c

This patch breaks netrw scp:// handling for me. I've tried several
versions of vim (git bisect actually, then run src/vim without
installing) with the same runtime and configuration files. Before
this patch, "vim scp://host/file" works, but after this patch, vim is
editing an empty buffer.

> *** ../vim-7.4.591/src/ex_cmds.c      2014-12-13 03:17:07.461046575 +0100
> --- src/ex_cmds.c     2015-01-27 11:21:14.752434647 +0100
> ***************
> *** 3529,3534 ****
> --- 3529,3541 ----
>   #endif
>               check_fname() == FAIL)
>           goto theend;
> + 
> +     /* ":e foobar" when already editing "foobar" will reload the file.
> +      * But when 'buftype' is "nofile" there is no file to load, so don't
> +      * do anything. */
> +     if (curbuf->b_p_bt[0] == 'n' && curbuf->b_p_bt[2] == 'f')
> +         goto theend;
> + 
>       oldbuf = (flags & ECMD_OLDBUF);
>       }
>   
> *** ../vim-7.4.591/src/version.c      2015-01-22 22:41:51.864583029 +0100
> --- src/version.c     2015-01-27 11:24:32.466265106 +0100
> ***************
> *** 743,744 ****
> --- 743,746 ----
>   {   /* Add new patch number below this line */
> + /**/
> +     592,
>   /**/

-- 
Best regards,
lilydjwg

-- 
-- 
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