Commit 407e1a2b authored by Simon Marlow's avatar Simon Marlow
Browse files

undo: Get the path right for :list

This is breaking :list for someone.  If there's a problem here, we
should fix it another way.
parent 6d23bdb7
......@@ -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)
lines = BS.split '\n' contents
these_lines = take (line2 - line1 + 1 + pad_before + pad_after) $
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment