diff options
author | Joey Hess <joey@kitenet.net> | 2011-11-27 13:50:05 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-11-27 13:50:05 -0400 |
commit | 2bf3addf4997023584e32812a9d8cbc46833d672 (patch) | |
tree | 9d15c56bc36c20793336238c223f6382e2694818 /Command | |
parent | 9a67f9cb8d0ce6da314b080228ac2cea55ee612a (diff) |
Bugfix: dropunused did not drop keys with two spaces in their name.
Diffstat (limited to 'Command')
-rw-r--r-- | Command/DropUnused.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/DropUnused.hs b/Command/DropUnused.hs index 2c3bb296a..3df9ab6c2 100644 --- a/Command/DropUnused.hs +++ b/Command/DropUnused.hs @@ -73,6 +73,6 @@ readUnusedLog prefix = do then M.fromList . map parse . lines <$> liftIO (readFile f) else return M.empty where - parse line = (head ws, fromJust $ readKey $ unwords $ tail ws) + parse line = (num, fromJust $ readKey $ tail rest) where - ws = words line + (num, rest) = break (== ' ') line |