diff --git a/src/netbeans.c b/src/netbeans.c index 4b0b00b33d..b566c8b455 100644 --- a/src/netbeans.c +++ b/src/netbeans.c @@ -2720,8 +2720,15 @@ nb_do_cmd( static void 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); + } } /* diff --git a/src/version.c b/src/version.c index dcb9edebe8..3e4426dac9 100644 --- a/src/version.c +++ b/src/version.c @@ -756,6 +756,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 663, /**/ 662, /**/