The Vim netbeans interface is not tabpage aware and does not check the
'switchbuf' option. So, even when a buffer is already loaded in the window of
a tab, placing an annotation in this buffer will cause the buffer to be loaded
in the current window of the current tab instead of moving to the tab where
the buffer is already loaded.
The attached patch fixes this.
-- Xavier
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/netbeans.c b/src/netbeans.c
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -2691,8 +2691,17 @@
static void
nb_set_curbuf(buf_T *buf)
{
- if (curbuf != buf && buf_jump_open_win(buf) == NULL)
+ if (curbuf != buf) {
+# ifdef FEAT_WINDOWS
+ if (swb_flags & SWB_USETAB) {
+ if (buf_jump_open_tab(buf))
+ return;
+ }
+ else if (buf_jump_open_win(buf))
+ return;
+# endif
set_curbuf(buf, DOBUF_GOTO);
+ }
}
/*