From 1092f6763d0bde319940a0b4d944aac57dc3affb Mon Sep 17 00:00:00 2001
From: Daniel Albers <daniel@lbers.com>
Date: Fri, 10 Oct 2008 17:28:24 +0200
Subject: [PATCH] also preserve temporary history entries on the last line

---
 src/uisupport/inputline.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/uisupport/inputline.cpp b/src/uisupport/inputline.cpp
index 7fbec2c..3578145 100644
--- a/src/uisupport/inputline.cpp
+++ b/src/uisupport/inputline.cpp
@@ -56,7 +56,7 @@ void InputLine::keyPressEvent(QKeyEvent * event) {
     if(idx < history.count())
       idx++;
 
-    if(idx < history.count())
+    if(idx < history.count() || tempHistory.contains(idx)) // tempHistory might have an entry for idx == history.count() + 1
       showHistoryEntry();
     else
       resetLine();              // equals clear() in this case
-- 
1.5.6.3

