summaryrefslogtreecommitdiff
path: root/src/interface/Textbox.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-03 20:48:45 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-03 20:48:45 (GMT)
commit61739018759847c4d356a7596926652856030306 (patch)
tree59dd50893ecb47bfab709d778b8a8a02dfc83331 /src/interface/Textbox.cpp
parentf586a5585f3838e78cf6880b84d4c369040b5f67 (diff)
downloadpowder-61739018759847c4d356a7596926652856030306.zip
powder-61739018759847c4d356a7596926652856030306.tar.gz
Old TPT console commands with "!" prefix
Diffstat (limited to 'src/interface/Textbox.cpp')
-rw-r--r--src/interface/Textbox.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interface/Textbox.cpp b/src/interface/Textbox.cpp
index e4a1261..4916c64 100644
--- a/src/interface/Textbox.cpp
+++ b/src/interface/Textbox.cpp
@@ -65,6 +65,8 @@ void Textbox::SetText(std::string newText)
else
Label::SetText(newText);
+ cursor = newText.length();
+
if(cursor)
{
Graphics::PositionAtCharIndex(multiline?((char*)textLines.c_str()):((char*)text.c_str()), cursor, cursorPositionX, cursorPositionY);