From f6c6837bf9b512bed4881e8fbf3ee61e7b26d5e1 Mon Sep 17 00:00:00 2001 From: Michael Jennings Date: Sun, 26 Nov 2000 04:59:38 +0000 Subject: [PATCH] Minor fix to the patch from the other day. SVN revision: 3922 --- src/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command.c b/src/command.c index 3a3f592..662e703 100644 --- a/src/command.c +++ b/src/command.c @@ -1762,7 +1762,7 @@ init_locale(void) char *locale = NULL; locale = setlocale(LC_ALL, ""); - TermWin.fontset = (XFontSet) -1; + TermWin.fontset = (XFontSet) 0; if (locale == NULL) { print_error("Setting locale failed.\n"); } else { @@ -1776,7 +1776,7 @@ init_locale(void) #else TermWin.fontset = create_fontset(etfonts[def_font_idx], "-misc-fixed-medium-r-semicondensed--13-*-75-*-c-*-iso10646-1"); #endif - if (xim_real_init() != -1) { + if ((TermWin.fontset == (XFontSet) 0) || (xim_real_init() != -1)) { return; }