diff options
| author | Simon 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) |
| commit | dddc04e412da7420d268cdadf8b9a62fc4f659e6 (patch) | |
| tree | d7ed4596d284fc930b6d155f3f755ee28af8ceea /src/interface/Textbox.cpp | |
| parent | fc93b714852b1bd0741fd75a9dd01358f32fa9f0 (diff) | |
| download | powder-dddc04e412da7420d268cdadf8b9a62fc4f659e6.zip powder-dddc04e412da7420d268cdadf8b9a62fc4f659e6.tar.gz | |
Move cursor to the end of the insertion after pasing in a Textbox
Diffstat (limited to 'src/interface/Textbox.cpp')
| -rw-r--r-- | src/interface/Textbox.cpp | 1 |
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) |
