mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-10 17:25:04 +08:00
Fixed off by one preventing printing of last line
This commit is contained in:
@@ -38,7 +38,7 @@ doInput filename contents colorFunc = do
|
|||||||
if not $ null comments then do
|
if not $ null comments then do
|
||||||
mapM_ (\x -> do
|
mapM_ (\x -> do
|
||||||
let lineNum = shpellLine (head x)
|
let lineNum = shpellLine (head x)
|
||||||
let line = if lineNum < 1 || lineNum >= lineCount
|
let line = if lineNum < 1 || lineNum > lineCount
|
||||||
then ""
|
then ""
|
||||||
else fileLines !! (lineNum - 1)
|
else fileLines !! (lineNum - 1)
|
||||||
putStrLn ""
|
putStrLn ""
|
||||||
|
Reference in New Issue
Block a user