Mercurial > vim
comparison src/tag.c @ 1826:b9202c4cf847 v7.2.124
updated for version 7.2-124
author | vimboss |
---|---|
date | Sun, 22 Feb 2009 23:54:59 +0000 |
parents | bbf0ba46e51d |
children | b5c1cb6f8d56 |
comparison
equal
deleted
inserted
replaced
1825:1a040c25c444 | 1826:b9202c4cf847 |
---|---|
616 MSG_PUTS_ATTR(_(" # pri kind tag"), hl_attr(HLF_T)); | 616 MSG_PUTS_ATTR(_(" # pri kind tag"), hl_attr(HLF_T)); |
617 msg_clr_eos(); | 617 msg_clr_eos(); |
618 taglen_advance(taglen); | 618 taglen_advance(taglen); |
619 MSG_PUTS_ATTR(_("file\n"), hl_attr(HLF_T)); | 619 MSG_PUTS_ATTR(_("file\n"), hl_attr(HLF_T)); |
620 | 620 |
621 for (i = 0; i < num_matches; ++i) | 621 for (i = 0; i < num_matches && !got_int; ++i) |
622 { | 622 { |
623 parse_match(matches[i], &tagp); | 623 parse_match(matches[i], &tagp); |
624 if (!new_tag && ( | 624 if (!new_tag && ( |
625 #if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX) | 625 #if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX) |
626 (g_do_tagpreview | 626 (g_do_tagpreview |
653 msg_puts_long_attr(p, hl_attr(HLF_D)); | 653 msg_puts_long_attr(p, hl_attr(HLF_D)); |
654 vim_free(p); | 654 vim_free(p); |
655 } | 655 } |
656 if (msg_col > 0) | 656 if (msg_col > 0) |
657 msg_putchar('\n'); | 657 msg_putchar('\n'); |
658 if (got_int) | |
659 break; | |
658 msg_advance(15); | 660 msg_advance(15); |
659 | 661 |
660 /* print any extra fields */ | 662 /* print any extra fields */ |
661 command_end = tagp.command_end; | 663 command_end = tagp.command_end; |
662 if (command_end != NULL) | 664 if (command_end != NULL) |
687 while (*p && *p != '\r' && *p != '\n') | 689 while (*p && *p != '\r' && *p != '\n') |
688 { | 690 { |
689 if (msg_col + ptr2cells(p) >= Columns) | 691 if (msg_col + ptr2cells(p) >= Columns) |
690 { | 692 { |
691 msg_putchar('\n'); | 693 msg_putchar('\n'); |
694 if (got_int) | |
695 break; | |
692 msg_advance(15); | 696 msg_advance(15); |
693 } | 697 } |
694 p = msg_outtrans_one(p, attr); | 698 p = msg_outtrans_one(p, attr); |
695 if (*p == TAB) | 699 if (*p == TAB) |
696 { | 700 { |
702 } | 706 } |
703 } | 707 } |
704 if (msg_col > 15) | 708 if (msg_col > 15) |
705 { | 709 { |
706 msg_putchar('\n'); | 710 msg_putchar('\n'); |
711 if (got_int) | |
712 break; | |
707 msg_advance(15); | 713 msg_advance(15); |
708 } | 714 } |
709 } | 715 } |
710 else | 716 else |
711 { | 717 { |
732 | 738 |
733 while (p != command_end) | 739 while (p != command_end) |
734 { | 740 { |
735 if (msg_col + (*p == TAB ? 1 : ptr2cells(p)) > Columns) | 741 if (msg_col + (*p == TAB ? 1 : ptr2cells(p)) > Columns) |
736 msg_putchar('\n'); | 742 msg_putchar('\n'); |
743 if (got_int) | |
744 break; | |
737 msg_advance(15); | 745 msg_advance(15); |
738 | 746 |
739 /* skip backslash used for escaping command char */ | 747 /* skip backslash used for escaping command char */ |
740 if (*p == '\\' && *(p + 1) == *tagp.command) | 748 if (*p == '\\' && *(p + 1) == *tagp.command) |
741 ++p; | 749 ++p; |
758 break; | 766 break; |
759 } | 767 } |
760 if (msg_col) | 768 if (msg_col) |
761 msg_putchar('\n'); | 769 msg_putchar('\n'); |
762 ui_breakcheck(); | 770 ui_breakcheck(); |
763 if (got_int) | 771 } |
764 { | 772 if (got_int) |
765 got_int = FALSE; /* only stop the listing */ | 773 got_int = FALSE; /* only stop the listing */ |
766 break; | |
767 } | |
768 } | |
769 ask_for_selection = TRUE; | 774 ask_for_selection = TRUE; |
770 } | 775 } |
771 #if defined(FEAT_QUICKFIX) && defined(FEAT_EVAL) | 776 #if defined(FEAT_QUICKFIX) && defined(FEAT_EVAL) |
772 else if (type == DT_LTAG) | 777 else if (type == DT_LTAG) |
773 { | 778 { |