mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 20:52:45 +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
|
||||
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 ""
|
||||
|
Reference in New Issue
Block a user