Commit cba82919 authored by Miquel Sabaté's avatar Miquel Sabaté

Revert "vimode: fixed a crash when performing the command "cn" in normal mode."

This reverts commit 535af159.
parent 535af159
......@@ -301,7 +301,7 @@ KateViRange KateViModeBase::findPatternForMotion( const QString& pattern, bool b
kDebug( 13070 ) << "searching for pattern \"" << pattern << "\", backwards = " << backwards
<< ", caseSensitive = " << caseSensitive << ", count = " << count;
if ( pattern.isEmpty() ) {
return KateViRange::invalid();
return KateViRange();
}
Range match = findPattern(pattern, backwards, caseSensitive, startFrom, count);
......
......@@ -2530,9 +2530,6 @@ KateViRange KateViNormalMode::motionFindPrev()
KateViRange match = findPatternForMotion( pattern, !backwards, caseSensitive, m_view->cursorPosition(), getCount() );
if (!match.valid) {
return match;
}
if (!placeCursorAtEndOfMatch)
{
return KateViRange(match.startLine, match.startColumn, ViMotion::ExclusiveMotion);
......@@ -2552,9 +2549,6 @@ KateViRange KateViNormalMode::motionFindNext()
KateViRange match = findPatternForMotion( pattern, backwards, caseSensitive, m_view->cursorPosition(), getCount() );
if (!match.valid) {
return match;
}
if (!placeCursorAtEndOfMatch)
{
return KateViRange(match.startLine, match.startColumn, ViMotion::ExclusiveMotion);
......
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