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:
parent
f7af16a1c9
commit
a42801d100
3 changed files with 6 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue