summaryrefslogtreecommitdiff
path: root/src/interface
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-28 13:24:15 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-28 13:24:15 (GMT)
commitdddc04e412da7420d268cdadf8b9a62fc4f659e6 (patch)
treed7ed4596d284fc930b6d155f3f755ee28af8ceea /src/interface
parentfc93b714852b1bd0741fd75a9dd01358f32fa9f0 (diff)
downloadpowder-dddc04e412da7420d268cdadf8b9a62fc4f659e6.zip
powder-dddc04e412da7420d268cdadf8b9a62fc4f659e6.tar.gz
Move cursor to the end of the insertion after pasing in a Textbox
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/Textbox.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interface/Textbox.cpp b/src/interface/Textbox.cpp
index 550687f..54c6e75 100644
--- a/src/interface/Textbox.cpp
+++ b/src/interface/Textbox.cpp
@@ -162,6 +162,7 @@ void Textbox::pasteIntoSelection()
cursor = getLowerSelectionBound();
}
backingText.insert(cursor, newText);
+ cursor = cursor+newText.length();
ClearSelection();
if(masked)