From 17342a2421f2f8cf62e4e7018c07933c34d85bc2 Mon Sep 17 00:00:00 2001 From: David Roundy Date: Fri, 10 Aug 2007 17:45:43 +0000 Subject: [PATCH] actually use the selected font in XPrompt. --- XPrompt.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/XPrompt.hs b/XPrompt.hs index d0a02564..1ab75ecf 100644 --- a/XPrompt.hs +++ b/XPrompt.hs @@ -132,6 +132,7 @@ mkXPrompt t conf compl action = do liftIO $ setGraphicsExposures d gc False fontS <- liftIO (loadQueryFont d (font conf) `catch` \_ -> loadQueryFont d "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*") + liftIO $ setFont d gc $ fontFromFontStruct fontS (hist,h) <- liftIO $ readHistory let st = initState d rw w s compl gc fontS (XPT t) hist conf st' <- liftIO $ execStateT runXP st