From dddc04e412da7420d268cdadf8b9a62fc4f659e6 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sat, 28 Jul 2012 14:24:15 +0100 Subject: Move cursor to the end of the insertion after pasing in a Textbox 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) -- cgit v0.9.2-21-gd62e