comparison src/gui_w32.c @ 1116:e76a088056dd v7.0.242

updated for version 7.0-242
author vimboss
date Fri, 04 May 2007 20:29:09 +0000
parents c1b61096e3d0
children fb8f2e3e798c
comparison
equal deleted inserted replaced
1115:11c004cc1a4d 1116:e76a088056dd
1138 1138
1139 #ifndef FEAT_OLE 1139 #ifndef FEAT_OLE
1140 static void 1140 static void
1141 ole_error(char *arg) 1141 ole_error(char *arg)
1142 { 1142 {
1143 EMSG2(_("E243: Argument not supported: \"-%s\"; Use the OLE version."), 1143 char buf[IOSIZE];
1144 arg); 1144
1145 /* Can't use EMSG() here, we have not finished initialisation yet. */
1146 vim_snprintf(buf, IOSIZE,
1147 _("E243: Argument not supported: \"-%s\"; Use the OLE version."),
1148 arg);
1149 mch_errmsg(buf);
1145 } 1150 }
1146 #endif 1151 #endif
1147 1152
1148 /* 1153 /*
1149 * Parse the GUI related command-line arguments. Any arguments used are 1154 * Parse the GUI related command-line arguments. Any arguments used are
3162 if (msgheight < DLG_ICON_HEIGHT) 3167 if (msgheight < DLG_ICON_HEIGHT)
3163 msgheight = DLG_ICON_HEIGHT; 3168 msgheight = DLG_ICON_HEIGHT;
3164 3169
3165 /* 3170 /*
3166 * Check button names. A long one will make the dialog wider. 3171 * Check button names. A long one will make the dialog wider.
3172 * When called early (-register error message) p_go isn't initialized.
3167 */ 3173 */
3168 vertical = (vim_strchr(p_go, GO_VERTICAL) != NULL); 3174 vertical = (p_go != NULL && vim_strchr(p_go, GO_VERTICAL) != NULL);
3169 if (!vertical) 3175 if (!vertical)
3170 { 3176 {
3171 // Place buttons horizontally if they fit. 3177 // Place buttons horizontally if they fit.
3172 horizWidth = dlgPaddingX; 3178 horizWidth = dlgPaddingX;
3173 pstart = tbuffer; 3179 pstart = tbuffer;