Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 001dac5b authored by Michal Humpula's avatar Michal Humpula

make find previous button in searchbar in vi-mode work

REVIEW: 114763
BUG: 329468
parent 55623327
......@@ -590,6 +590,12 @@ bool KateSearchBar::find(SearchDirection searchDirection, const QString * replac
KateMatch match(m_view->doc(), enabledOptions);
Range afterReplace = Range::invalid();
// FIXME: in KF5 remove dependency on viInputMode
if (m_view->viInputMode() && searchDirection == SearchBackward) {
const Cursor end(inputRange.end().line(), inputRange.end().column() - 1);
inputRange.setRange(inputRange.start(), end);
// Find, first try
match.searchText(inputRange, searchPattern());
if (match.isValid() && match.range() == selection) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment