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