Mercurial > vim
comparison src/netbeans.c @ 6677:77172f5bac73 v7.4.663
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 14 Mar 2015 15:35:52 +0100 |
parents | f8f2a61e538d |
children | 97cc4ee3e095 |
comparison
equal
deleted
inserted
replaced
6676:a0198cebc8f4 | 6677:77172f5bac73 |
---|---|
2689 * the current buffer as "buf". | 2689 * the current buffer as "buf". |
2690 */ | 2690 */ |
2691 static void | 2691 static void |
2692 nb_set_curbuf(buf_T *buf) | 2692 nb_set_curbuf(buf_T *buf) |
2693 { | 2693 { |
2694 if (curbuf != buf && buf_jump_open_win(buf) == NULL) | 2694 if (curbuf != buf) { |
2695 if (buf_jump_open_win(buf) != NULL) | |
2696 return; | |
2697 # ifdef FEAT_WINDOWS | |
2698 if ((swb_flags & SWB_USETAB) && buf_jump_open_tab(buf) != NULL) | |
2699 return; | |
2700 # endif | |
2695 set_curbuf(buf, DOBUF_GOTO); | 2701 set_curbuf(buf, DOBUF_GOTO); |
2702 } | |
2696 } | 2703 } |
2697 | 2704 |
2698 /* | 2705 /* |
2699 * Process a vim colon command. | 2706 * Process a vim colon command. |
2700 */ | 2707 */ |