0
0
mirror of https://github.com/vim/vim.git synced 2025-11-15 23:14:06 -05:00

updated for version 7.4.663

Problem:    When using netbeans a buffer is not found in another tab.
Solution:   When 'switchbuf' is set to "usetab" then switch to another tab
            when possible. (Xavier de Gaye)
This commit is contained in:
Bram Moolenaar
2015-03-14 15:35:52 +01:00
parent 438b64ab71
commit 404c942fb8
2 changed files with 10 additions and 1 deletions

View File

@@ -2691,8 +2691,15 @@ nb_do_cmd(
static void static void
nb_set_curbuf(buf_T *buf) nb_set_curbuf(buf_T *buf)
{ {
if (curbuf != buf && buf_jump_open_win(buf) == NULL) if (curbuf != buf) {
if (buf_jump_open_win(buf) != NULL)
return;
# ifdef FEAT_WINDOWS
if ((swb_flags & SWB_USETAB) && buf_jump_open_tab(buf) != NULL)
return;
# endif
set_curbuf(buf, DOBUF_GOTO); set_curbuf(buf, DOBUF_GOTO);
}
} }
/* /*

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
663,
/**/ /**/
662, 662,
/**/ /**/