summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrustable-code <krauter.simon@arcor.de>2018-03-20 18:22:47 +0100
committertrustable-code <krauter.simon@arcor.de>2018-03-20 18:22:47 +0100
commitb4c3624a1015b6552d8a267dd515181bc361e1b3 (patch)
tree27e49018e820f65b2f4198f44c0ab12d3e518bda /src
parent91245e6c7afd57e035ab6de481fcba9ef854940f (diff)
downloadNiGui-b4c3624a1015b6552d8a267dd515181bc361e1b3.tar.gz
NiGui-b4c3624a1015b6552d8a267dd515181bc361e1b3.zip
Update to Nim 0.18.0: \n -> \p
Diffstat (limited to 'src')
-rwxr-xr-xsrc/nigui.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nigui.nim b/src/nigui.nim
index c906072..f4e49ef 100755
--- a/src/nigui.nim
+++ b/src/nigui.nim
@@ -920,7 +920,7 @@ var fDefaultFontSize = 15
proc raiseError(msg: string, showAlert = true, title = "NiGui Error") =
if showAlert:
- alert(nil, msg & "\n\n" & getStackTrace(), title)
+ alert(nil, msg & "\p\p" & getStackTrace(), title)
raise newException(Exception, msg)
proc handleException() =
@@ -2341,7 +2341,7 @@ proc init(textArea: TextArea) =
method addText(textArea: TextArea, text: string) = textArea.text = textArea.text & text
-method addLine(textArea: TextArea, text = "") = textArea.addtext(text & "\n")
+method addLine(textArea: TextArea, text = "") = textArea.addtext(text & "\p")
method scrollToBottom(textArea: TextArea) = discard
# has to be implemented by NativeTextBox