comparison src/os_mswin.c @ 828:01583c79d5f4 v7.0d03

updated for version 7.0d03
author vimboss
date Thu, 13 Apr 2006 20:37:35 +0000
parents c6245a087950
children 8bebcabccc2c
comparison
equal deleted inserted replaced
827:fd1b3406fd1c 828:01583c79d5f4
582 { 582 {
583 /* avoid putting up a message box with blanks only */ 583 /* avoid putting up a message box with blanks only */
584 for (p = (char *)error_ga.ga_data; *p; ++p) 584 for (p = (char *)error_ga.ga_data; *p; ++p)
585 if (!isspace(*p)) 585 if (!isspace(*p))
586 { 586 {
587 #if 0
588 /* Truncate a very long message, it will go off-screen. */
589 if (STRLEN(p) > 2000)
590 {
591 char_u *s = p + 2000 - 14;
592
593 #ifdef FEAT_MBYTE
594 if (has_mbyte)
595 s -= (*mb_head_off)(p, s);
596 #endif
597 STRCPY(s, _("...(truncated)"));
598 }
599 #endif
600
601 (void)gui_mch_dialog( 587 (void)gui_mch_dialog(
602 #ifdef FEAT_GUI 588 #ifdef FEAT_GUI
603 gui.starting ? VIM_INFO : 589 gui.starting ? VIM_INFO :
604 #endif 590 #endif
605 VIM_ERROR, 591 VIM_ERROR,
606 #ifdef FEAT_GUI 592 #ifdef FEAT_GUI
607 gui.starting ? (char_u *)_("Message") : 593 gui.starting ? (char_u *)_("Message") :
608 #endif 594 #endif
609 (char_u *)_("Error"), 595 (char_u *)_("Error"),
610 p, (char_u *)_("&Ok"), 1, NULL); 596 p, (char_u *)_("&Ok"), 1, NULL);
611 #if 0
612 #ifdef WIN3264
613 MessageBox(NULL, p, "Vim", MB_TASKMODAL|MB_SETFOREGROUND);
614 #else
615 MessageBox(NULL, p, "Vim", MB_TASKMODAL);
616 #endif
617 #endif
618 break; 597 break;
619 } 598 }
620 ga_clear(&error_ga); 599 ga_clear(&error_ga);
621 } 600 }
622 } 601 }