projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6d23bdb
)
undo: Get the path right for :list
author
Simon Marlow
<simonmar@microsoft.com>
Fri, 6 Jul 2007 15:21:32 +0000
(15:21 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Fri, 6 Jul 2007 15:21:32 +0000
(15:21 +0000)
This is breaking :list for someone. If there's a problem here, we
should fix it another way.
compiler/ghci/InteractiveUI.hs
patch
|
blob
|
history
diff --git
a/compiler/ghci/InteractiveUI.hs
b/compiler/ghci/InteractiveUI.hs
index
3f87d3c
..
dd24d5b
100644
(file)
--- a/
compiler/ghci/InteractiveUI.hs
+++ b/
compiler/ghci/InteractiveUI.hs
@@
-1801,8
+1801,7
@@
listModuleLine modl line = do
-- If the highlight flag is True, also highlight the span using
-- start_bold/end_bold.
listAround span do_highlight = do
- pwd <- getEnv "PWD"
- contents <- BS.readFile (pwd `joinFileName` unpackFS file)
+ contents <- BS.readFile (unpackFS file)
let
lines = BS.split '\n' contents
these_lines = take (line2 - line1 + 1 + pad_before + pad_after) $