mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-26 09:41:52 -07:00
XPrompt: catch exceptions when running the completion function
This commit is contained in:
@@ -446,7 +446,8 @@ printPrompt drw = do
|
||||
getCompletions :: XP [String]
|
||||
getCompletions = do
|
||||
s <- get
|
||||
io $ (completionFunction s) (getLastWord $ command s)
|
||||
io $ ((completionFunction s) (getLastWord $ command s)
|
||||
`catch` \_ -> return [])
|
||||
|
||||
setComplWin :: Window -> ComplWindowDim -> XP ()
|
||||
setComplWin w wi =
|
||||
|
Reference in New Issue
Block a user