projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a409bd5
)
FIX #2073: Don't add empty lines to GHCI's history
author
Ian Lynagh
<igloo@earth.li>
Sun, 24 Feb 2008 14:32:56 +0000
(14:32 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sun, 24 Feb 2008 14:32:56 +0000
(14:32 +0000)
compiler/ghci/InteractiveUI.hs
patch
|
blob
|
history
diff --git
a/compiler/ghci/InteractiveUI.hs
b/compiler/ghci/InteractiveUI.hs
index
2594d13
..
8ff83f9
100644
(file)
--- a/
compiler/ghci/InteractiveUI.hs
+++ b/
compiler/ghci/InteractiveUI.hs
@@
-599,6
+599,7
@@
readlineLoop = do
splatSavedSession
case l of
Nothing -> return Nothing
+ Just "" -> return (Just "") -- Don't put empty lines in the history
Just l -> do
io (addHistory l)
str <- io $ consoleInputToUnicode True l