mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-10 08:51:54 -07:00
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:
@@ -62,7 +62,6 @@ data Shell = Shell
|
|||||||
instance XPrompt Shell where
|
instance XPrompt Shell where
|
||||||
showXPrompt Shell = "Run: "
|
showXPrompt Shell = "Run: "
|
||||||
completionToCommand _ = escape
|
completionToCommand _ = escape
|
||||||
commandToComplete _ c = c
|
|
||||||
|
|
||||||
shellPrompt :: XPConfig -> X ()
|
shellPrompt :: XPConfig -> X ()
|
||||||
shellPrompt c = do
|
shellPrompt c = do
|
||||||
|
Reference in New Issue
Block a user