aboutsummaryrefslogtreecommitdiffstats
path: root/XPrompt.hs
diff options
context:
space:
mode:
Diffstat (limited to 'XPrompt.hs')
-rw-r--r--XPrompt.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/XPrompt.hs b/XPrompt.hs
index 1b15f13..c00f8d9 100644
--- a/XPrompt.hs
+++ b/XPrompt.hs
@@ -130,7 +130,8 @@ mkXPrompt t conf compl action = do
liftIO $ selectInput d w $ exposureMask .|. keyPressMask
gc <- liftIO $ createGC d w
liftIO $ setGraphicsExposures d gc False
- fontS <- liftIO $ loadQueryFont d (font conf)
+ fontS <- liftIO (loadQueryFont d (font conf) `catch`
+ \_ -> loadQueryFont d "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*")
(hist,h) <- liftIO $ readHistory
let st = initState d rw w s compl gc fontS (XPT t) hist conf
st' <- liftIO $ execStateT runXP st