comparison src/message.c @ 8905:9200836eee15 v7.4.1739

commit https://github.com/vim/vim/commit/bea1ede1c59a11ca5bf9d91cd30b7b2937b9fb41 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 14 19:44:36 2016 +0200 patch 7.4.1739 Problem: Messages test fails on MS-Windows. Solution: Adjust the asserts. Skip the "messages maintainer" line if not showing all messages.
author Christian Brabandt <cb@256bit.org>
date Thu, 14 Apr 2016 19:45:04 +0200
parents b4dad96ade29
children 70d3337ff173
comparison
equal deleted inserted replaced
8904:9f608f269230 8905:9200836eee15
787 return; 787 return;
788 } 788 }
789 789
790 msg_hist_off = TRUE; 790 msg_hist_off = TRUE;
791 791
792 s = mch_getenv((char_u *)"LANG");
793 if (s != NULL && *s != NUL)
794 msg_attr((char_u *)
795 _("Messages maintainer: Bram Moolenaar <Bram@vim.org>"),
796 hl_attr(HLF_T));
797
798 p = first_msg_hist; 792 p = first_msg_hist;
799
800 if (eap->addr_count != 0) 793 if (eap->addr_count != 0)
801 { 794 {
802 /* Count total messages */ 795 /* Count total messages */
803 for (; p != NULL && !got_int; p = p->next) 796 for (; p != NULL && !got_int; p = p->next)
804 c++; 797 c++;
806 c -= eap->line2; 799 c -= eap->line2;
807 800
808 /* Skip without number of messages specified */ 801 /* Skip without number of messages specified */
809 for (p = first_msg_hist; p != NULL && !got_int && c > 0; 802 for (p = first_msg_hist; p != NULL && !got_int && c > 0;
810 p = p->next, c--); 803 p = p->next, c--);
804 }
805
806 if (p == first_msg_hist)
807 {
808 s = mch_getenv((char_u *)"LANG");
809 if (s != NULL && *s != NUL)
810 msg_attr((char_u *)
811 _("Messages maintainer: Bram Moolenaar <Bram@vim.org>"),
812 hl_attr(HLF_T));
811 } 813 }
812 814
813 /* Display what was not skipped. */ 815 /* Display what was not skipped. */
814 for (; p != NULL && !got_int; p = p->next) 816 for (; p != NULL && !got_int; p = p->next)
815 if (p->msg != NULL) 817 if (p->msg != NULL)