summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorSimon Krauter <trustable-code@users.noreply.github.com>2017-03-03 01:31:17 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-03-03 01:31:17 +0100
commita42801d100c2ec33b93af89f7fd2b17cfe5d4fbc (patch)
tree5c5062ab96e6f53dbe10fbb3e8331e0448b1d12c /tests
parentf7af16a1c90914901082ad6a0ba3a7a891f807ee (diff)
downloadNim-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.nim2
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