diff options
Diffstat (limited to 'src/widget/wsearchlineedit.cpp')
-rw-r--r-- | src/widget/wsearchlineedit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widget/wsearchlineedit.cpp b/src/widget/wsearchlineedit.cpp index 70791e8ae4..1fb28ce7b5 100644 --- a/src/widget/wsearchlineedit.cpp +++ b/src/widget/wsearchlineedit.cpp @@ -430,7 +430,8 @@ void WSearchLineEdit::slotSaveSearch() { void WSearchLineEdit::slotMoveSelectedHistory(int steps) { int nIndex = currentIndex() + steps; - // we wrap around to the last entry on backwards direction + // at the top we manually wrap around to the last entry. + // at the bottom wrap-around happens automatically due to invalid nIndex. if (nIndex < -1) { nIndex = count() - 1; } |