From 758d3568fe1a9cd08bd6c62c87ac3ac2c48f2f4d Mon Sep 17 00:00:00 2001 From: Sebastian Goth Date: Thu, 9 Apr 2009 19:26:40 +0200 Subject: [PATCH] Move cursor to end of line when browsing history (KTextEdit). --- src/uisupport/inputline.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/uisupport/inputline.cpp b/src/uisupport/inputline.cpp index f9c8a651..03087fb6 100644 --- a/src/uisupport/inputline.cpp +++ b/src/uisupport/inputline.cpp @@ -241,4 +241,9 @@ void InputLine::resetLine() { void InputLine::showHistoryEntry() { // if the user changed the history, display the changed line tempHistory.contains(idx) ? setText(tempHistory[idx]) : setText(history[idx]); +#ifdef HAVE_KDE + QTextCursor cursor = textCursor(); + cursor.movePosition(QTextCursor::End); + setTextCursor(cursor); +#endif } -- 2.20.1