Make countLines() the same as len(splitLines(s)) (#5470)

The result of countLines() is now increased by 1 compared to the old
version.
Fixes #5460.
This commit is contained in:
Simon Krauter
2017-03-03 01:31:17 +01:00
committed by Andreas Rumpf
parent f7af16a1c9
commit a42801d100
3 changed files with 6 additions and 10 deletions

View File

@@ -240,7 +240,7 @@ proc add*(m: PMessageArea, msg: ScChat) =
of CPriv, CSystem: mmm.color = Green
of CError: mmm.color = Red
mmm.lines = countLines(mmm.text)+1
mmm.lines = countLines(mmm.text)
m.messages.add mmm
update m