提交 e6edffa8 编写于 作者: V Vidar Holen

Fixed off by one preventing printing of last line

上级 a92598c3
......@@ -38,7 +38,7 @@ doInput filename contents colorFunc = do
if not $ null comments then do
mapM_ (\x -> do
let lineNum = shpellLine (head x)
let line = if lineNum < 1 || lineNum >= lineCount
let line = if lineNum < 1 || lineNum > lineCount
then ""
else fileLines !! (lineNum - 1)
putStrLn ""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册