Ike Devolder wrote:
> 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
> >
> >
> > *** ../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,
> > /**/
>
> Tiny build fails after this patch.
>
>
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -march=x86-64
> -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4
> -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/ex_cmds.o ex_cmds.c^M
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -march=x86-64
> -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4
> -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/ex_cmds2.o ex_cmds2.c^M
> ex_cmds.c: In function 'do_ecmd':^M
>
>
> ex_cmds.c:3536:12: error: 'buf_T' has
> no member named 'b_p_bt'^M
> if (curbuf->b_p_bt[0] == 'n' && curbuf->b_p_bt[2] == 'f')^M
> ^^M
> ex_cmds.c:3536:40: error: 'buf_T' has no member named 'b_p_bt'^M
> if (curbuf->b_p_bt[0] == 'n' && curbuf->b_p_bt[2] == 'f')^M
> ^^M
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -march=x86-64
> -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4
> -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/ex_docmd.o ex_docmd.c^M
> Makefile:2551: recipe for target 'objects/ex_cmds.o' failed^M
> make[1]: *** [objects/ex_cmds.o] Error 1^M
Sorry about that, I'll make a fix.
--
I have a watch cat! Just break in and she'll watch.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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.