diff options
author | Simon Krauter <trustable-code@users.noreply.github.com> | 2017-03-03 01:31:17 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-03-03 01:31:17 +0100 |
commit | a42801d100c2ec33b93af89f7fd2b17cfe5d4fbc (patch) | |
tree | 5c5062ab96e6f53dbe10fbb3e8331e0448b1d12c /tests | |
parent | f7af16a1c90914901082ad6a0ba3a7a891f807ee (diff) | |
download | Nim-a42801d100c2ec33b93af89f7fd2b17cfe5d4fbc.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manyloc/keineschweine/lib/sg_gui.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manyloc/keineschweine/lib/sg_gui.nim b/tests/manyloc/keineschweine/lib/sg_gui.nim index aae51baec..ffc4e8215 100644 --- a/tests/manyloc/keineschweine/lib/sg_gui.nim +++ b/tests/manyloc/keineschweine/lib/sg_gui.nim @@ -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 |