|
Karsten Hopp |
15e9ce |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
15e9ce |
Subject: Patch 7.3.563
|
|
Karsten Hopp |
15e9ce |
Fcc: outbox
|
|
Karsten Hopp |
15e9ce |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
15e9ce |
Mime-Version: 1.0
|
|
Karsten Hopp |
15e9ce |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
15e9ce |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
15e9ce |
------------
|
|
Karsten Hopp |
15e9ce |
|
|
Karsten Hopp |
15e9ce |
Patch 7.3.563 (after 7.3.557)
|
|
Karsten Hopp |
15e9ce |
Problem: Can't build with tiny features.
|
|
Karsten Hopp |
15e9ce |
Solution: Add #ifdef.
|
|
Karsten Hopp |
15e9ce |
Files: src/buffer.c
|
|
Karsten Hopp |
15e9ce |
|
|
Karsten Hopp |
15e9ce |
|
|
Karsten Hopp |
15e9ce |
*** ../vim-7.3.562/src/buffer.c 2012-06-20 11:54:55.000000000 +0200
|
|
Karsten Hopp |
15e9ce |
--- src/buffer.c 2012-06-20 17:40:59.000000000 +0200
|
|
Karsten Hopp |
15e9ce |
***************
|
|
Karsten Hopp |
15e9ce |
*** 1363,1369 ****
|
|
Karsten Hopp |
15e9ce |
--- 1363,1371 ----
|
|
Karsten Hopp |
15e9ce |
int action;
|
|
Karsten Hopp |
15e9ce |
{
|
|
Karsten Hopp |
15e9ce |
buf_T *prevbuf;
|
|
Karsten Hopp |
15e9ce |
+ #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
15e9ce |
win_T *prevwin;
|
|
Karsten Hopp |
15e9ce |
+ #endif
|
|
Karsten Hopp |
15e9ce |
int unload = (action == DOBUF_UNLOAD || action == DOBUF_DEL
|
|
Karsten Hopp |
15e9ce |
|| action == DOBUF_WIPE);
|
|
Karsten Hopp |
15e9ce |
|
|
Karsten Hopp |
15e9ce |
***************
|
|
Karsten Hopp |
15e9ce |
*** 1403,1418 ****
|
|
Karsten Hopp |
15e9ce |
--- 1405,1424 ----
|
|
Karsten Hopp |
15e9ce |
if (buf_valid(prevbuf))
|
|
Karsten Hopp |
15e9ce |
#endif
|
|
Karsten Hopp |
15e9ce |
{
|
|
Karsten Hopp |
15e9ce |
+ #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
15e9ce |
prevwin = curwin;
|
|
Karsten Hopp |
15e9ce |
+ #endif
|
|
Karsten Hopp |
15e9ce |
if (prevbuf == curbuf)
|
|
Karsten Hopp |
15e9ce |
u_sync(FALSE);
|
|
Karsten Hopp |
15e9ce |
close_buffer(prevbuf == curwin->w_buffer ? curwin : NULL, prevbuf,
|
|
Karsten Hopp |
15e9ce |
unload ? action : (action == DOBUF_GOTO
|
|
Karsten Hopp |
15e9ce |
&& !P_HID(prevbuf)
|
|
Karsten Hopp |
15e9ce |
&& !bufIsChanged(prevbuf)) ? DOBUF_UNLOAD : 0, FALSE);
|
|
Karsten Hopp |
15e9ce |
+ #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
15e9ce |
if (curwin != prevwin && win_valid(prevwin))
|
|
Karsten Hopp |
15e9ce |
/* autocommands changed curwin, Grr! */
|
|
Karsten Hopp |
15e9ce |
curwin = prevwin;
|
|
Karsten Hopp |
15e9ce |
+ #endif
|
|
Karsten Hopp |
15e9ce |
}
|
|
Karsten Hopp |
15e9ce |
}
|
|
Karsten Hopp |
15e9ce |
#ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
15e9ce |
***************
|
|
Karsten Hopp |
15e9ce |
*** 1420,1431 ****
|
|
Karsten Hopp |
15e9ce |
* it did ":bunload") or aborted the script processing!
|
|
Karsten Hopp |
15e9ce |
* If curwin->w_buffer is null, enter_buffer() will make it valid again */
|
|
Karsten Hopp |
15e9ce |
if ((buf_valid(buf) && buf != curbuf
|
|
Karsten Hopp |
15e9ce |
! #ifdef FEAT_EVAL
|
|
Karsten Hopp |
15e9ce |
&& !aborting()
|
|
Karsten Hopp |
15e9ce |
! #endif
|
|
Karsten Hopp |
15e9ce |
! #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
15e9ce |
) || curwin->w_buffer == NULL
|
|
Karsten Hopp |
15e9ce |
! #endif
|
|
Karsten Hopp |
15e9ce |
)
|
|
Karsten Hopp |
15e9ce |
#endif
|
|
Karsten Hopp |
15e9ce |
enter_buffer(buf);
|
|
Karsten Hopp |
15e9ce |
--- 1426,1437 ----
|
|
Karsten Hopp |
15e9ce |
* it did ":bunload") or aborted the script processing!
|
|
Karsten Hopp |
15e9ce |
* If curwin->w_buffer is null, enter_buffer() will make it valid again */
|
|
Karsten Hopp |
15e9ce |
if ((buf_valid(buf) && buf != curbuf
|
|
Karsten Hopp |
15e9ce |
! # ifdef FEAT_EVAL
|
|
Karsten Hopp |
15e9ce |
&& !aborting()
|
|
Karsten Hopp |
15e9ce |
! # endif
|
|
Karsten Hopp |
15e9ce |
! # ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
15e9ce |
) || curwin->w_buffer == NULL
|
|
Karsten Hopp |
15e9ce |
! # endif
|
|
Karsten Hopp |
15e9ce |
)
|
|
Karsten Hopp |
15e9ce |
#endif
|
|
Karsten Hopp |
15e9ce |
enter_buffer(buf);
|
|
Karsten Hopp |
15e9ce |
*** ../vim-7.3.562/src/version.c 2012-06-20 15:48:53.000000000 +0200
|
|
Karsten Hopp |
15e9ce |
--- src/version.c 2012-06-20 17:54:01.000000000 +0200
|
|
Karsten Hopp |
15e9ce |
***************
|
|
Karsten Hopp |
15e9ce |
*** 716,717 ****
|
|
Karsten Hopp |
15e9ce |
--- 716,719 ----
|
|
Karsten Hopp |
15e9ce |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
15e9ce |
+ /**/
|
|
Karsten Hopp |
15e9ce |
+ 563,
|
|
Karsten Hopp |
15e9ce |
/**/
|
|
Karsten Hopp |
15e9ce |
|
|
Karsten Hopp |
15e9ce |
--
|
|
Karsten Hopp |
15e9ce |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
15e9ce |
45. You buy a Captain Kirk chair with a built-in keyboard and mouse.
|
|
Karsten Hopp |
15e9ce |
|
|
Karsten Hopp |
15e9ce |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
15e9ce |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
15e9ce |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
15e9ce |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|