Mercurial > vim
comparison src/tag.c @ 589:bc49ed25543d
updated for version 7.0167
author | vimboss |
---|---|
date | Sun, 11 Dec 2005 21:29:51 +0000 |
parents | 5ffc9de8bb26 |
children | 111509d2767a |
comparison
equal
deleted
inserted
replaced
588:d133e7c550d0 | 589:bc49ed25543d |
---|---|
841 out_flush(); | 841 out_flush(); |
842 ui_delay(1000L, TRUE); | 842 ui_delay(1000L, TRUE); |
843 } | 843 } |
844 } | 844 } |
845 | 845 |
846 #ifdef FEAT_AUTOCMD | |
847 /* Let the SwapExists event know what tag we are jumping to. */ | |
848 vim_snprintf((char *)IObuff, IOSIZE, ":ta %s\r", name); | |
849 set_vim_var_string(VV_SWAPCOMMAND, IObuff, -1); | |
850 #endif | |
851 | |
846 /* | 852 /* |
847 * Jump to the desired match. | 853 * Jump to the desired match. |
848 */ | 854 */ |
849 if (jumpto_tag(matches[cur_match], forceit, type != DT_CSCOPE) | 855 i = jumpto_tag(matches[cur_match], forceit, type != DT_CSCOPE); |
850 == NOTAGFILE) | 856 |
857 #ifdef FEAT_AUTOCMD | |
858 set_vim_var_string(VV_SWAPCOMMAND, NULL, -1); | |
859 #endif | |
860 | |
861 if (i == NOTAGFILE) | |
851 { | 862 { |
852 /* File not found: try again with another matching tag */ | 863 /* File not found: try again with another matching tag */ |
853 if ((type == DT_PREV && cur_match > 0) | 864 if ((type == DT_PREV && cur_match > 0) |
854 || ((type == DT_TAG || type == DT_NEXT | 865 || ((type == DT_TAG || type == DT_NEXT |
855 || type == DT_FIRST) | 866 || type == DT_FIRST) |