summaryrefslogtreecommitdiff
path: root/Command/Vicfg.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Vicfg.hs')
-rw-r--r--Command/Vicfg.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Command/Vicfg.hs b/Command/Vicfg.hs
index a7090e190..d44967b28 100644
--- a/Command/Vicfg.hs
+++ b/Command/Vicfg.hs
@@ -146,10 +146,10 @@ parseCfg curcfg = go [] curcfg . lines
where
(setting, rest) = separate isSpace l
(repo, value) = separate (== '=') rest
- value' = dropWhile isSpace value
- repo' = reverse $ dropWhile isSpace $
- reverse $ dropWhile isSpace repo
-
+ value' = trimspace value
+ repo' = reverse $ trimspace $
+ reverse $ trimspace repo
+ trimspace = dropWhile isSpace
handle cfg u setting value
| setting == "trust" = case readTrustLevel value of