From dddc04e412da7420d268cdadf8b9a62fc4f659e6 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sat, 28 Jul 2012 14:24:15 +0100 Subject: [PATCH] Move cursor to the end of the insertion after pasing in a Textbox --- src/interface/Textbox.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interface/Textbox.cpp b/src/interface/Textbox.cpp index 550687f49..54c6e7551 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)