summaryrefslogtreecommitdiff
path: root/src/netbeans.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/netbeans.c')
-rw-r--r--src/netbeans.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/netbeans.c b/src/netbeans.c
index 4f6cf2f47..e9f791072 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -2691,8 +2691,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);
+ }
}
/*