browseIt with modified environment to solve #265
This commit is contained in:
parent
6cad2b5e90
commit
f194b528c8
@ -316,5 +316,11 @@ browseIt :: IOish m
|
||||
-> ModuleString
|
||||
-> GhcModT m (String, Bool, Set FilePath)
|
||||
browseIt set mdl = do
|
||||
ret <- browse mdl
|
||||
let (det,rest') = break (== ' ') mdl
|
||||
rest = dropWhile (== ' ') rest'
|
||||
ret <- if det == "-d"
|
||||
then withOptions setDetailed (browse rest)
|
||||
else browse mdl
|
||||
return (ret, True, set)
|
||||
where
|
||||
setDetailed opt = opt { detailed = True }
|
||||
|
Loading…
Reference in New Issue
Block a user