mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
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:
committed by
Andreas Rumpf
parent
f7af16a1c9
commit
a42801d100
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user