Make commandToComplete in XMonad.Prompt.Shell complete last word

The following change from 2013-02-09 breaks shell completion for me:
    hunk ./XMonad/Prompt/Shell.hs 65
    +    commandToComplete _ c = c

It seems to be passing the entire string into compgen in order to get the file completions, but it should only pass the last word. I propose reverting this change. Comments are appreciated.
This commit is contained in:
md143rbh7f 2014-01-30 20:00:50 +00:00
parent 35ed0601f4
commit 9403542db0

View File

@ -62,7 +62,6 @@ data Shell = Shell
instance XPrompt Shell where
showXPrompt Shell = "Run: "
completionToCommand _ = escape
commandToComplete _ c = c
shellPrompt :: XPConfig -> X ()
shellPrompt c = do