comparison src/tag.c @ 273:2463194c8cdd

updated for version 7.0073
author vimboss
date Thu, 19 May 2005 21:00:46 +0000
parents 4707450c2b33
children bf6ee000a80c
comparison
equal deleted inserted replaced
272:ddada568db54 273:2463194c8cdd
596 (use_tagstack 596 (use_tagstack
597 && i == tagstack[tagstackidx].cur_match))) 597 && i == tagstack[tagstackidx].cur_match)))
598 *IObuff = '>'; 598 *IObuff = '>';
599 else 599 else
600 *IObuff = ' '; 600 *IObuff = ' ';
601 sprintf((char *)IObuff + 1, "%2d %s ", i + 1, 601 vim_snprintf((char *)IObuff + 1, IOSIZE - 1,
602 "%2d %s ", i + 1,
602 mt_names[matches[i][0] & MT_MASK]); 603 mt_names[matches[i][0] & MT_MASK]);
603 msg_puts(IObuff); 604 msg_puts(IObuff);
604 if (tagp.tagkind != NULL) 605 if (tagp.tagkind != NULL)
605 msg_outtrans_len(tagp.tagkind, 606 msg_outtrans_len(tagp.tagkind,
606 (int)(tagp.tagkind_end - tagp.tagkind)); 607 (int)(tagp.tagkind_end - tagp.tagkind));
805 /* 806 /*
806 * Only when going to try the next match, report that the previous 807 * Only when going to try the next match, report that the previous
807 * file didn't exist. Otherwise an EMSG() is given below. 808 * file didn't exist. Otherwise an EMSG() is given below.
808 */ 809 */
809 if (nofile_fname != NULL && error_cur_match != cur_match) 810 if (nofile_fname != NULL && error_cur_match != cur_match)
810 msg_str((char_u *)_("File \"%s\" does not exist"), 811 smsg((char_u *)_("File \"%s\" does not exist"), nofile_fname);
811 nofile_fname);
812 812
813 813
814 ic = (matches[cur_match][0] & MT_IC_OFF); 814 ic = (matches[cur_match][0] & MT_IC_OFF);
815 if (type != DT_SELECT && type != DT_JUMP 815 if (type != DT_SELECT && type != DT_JUMP
816 #ifdef FEAT_CSCOPE 816 #ifdef FEAT_CSCOPE
1358 1358
1359 if ((fp = mch_fopen((char *)tag_fname, "r")) == NULL) 1359 if ((fp = mch_fopen((char *)tag_fname, "r")) == NULL)
1360 continue; 1360 continue;
1361 1361
1362 if (p_verbose >= 5) 1362 if (p_verbose >= 5)
1363 msg_str((char_u *)_("Searching tags file %s"), tag_fname); 1363 smsg((char_u *)_("Searching tags file %s"), tag_fname);
1364 } 1364 }
1365 did_open = TRUE; /* remember that we found at least one file */ 1365 did_open = TRUE; /* remember that we found at least one file */
1366 1366
1367 state = TS_START; /* we're at the start of the file */ 1367 state = TS_START; /* we're at the start of the file */
1368 #ifdef FEAT_EMACS_TAGS 1368 #ifdef FEAT_EMACS_TAGS