Commit 76a71f48 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Clear highlights if text field becomes empty

BUG: 436674
parent 6a675e58
......@@ -915,6 +915,7 @@ void KatePluginSearchView::startSearch()
if (m_ui.searchCombo->currentText().isEmpty()) {
// return pressed in the folder combo or filter combo
clearMarksAndRanges();
return;
}
......@@ -1102,6 +1103,7 @@ void KatePluginSearchView::startSearchWhileTyping()
// Do not clear the search results if you press up by mistake
if (currentSearchText.isEmpty()) {
clearMarksAndRanges();
return;
}
......
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