From 597c65663055de6b261802b88c17f9a179a69ca2 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 30 Aug 2014 11:24:04 +0200 Subject: [PATCH] actions: apply filter: apply initial filter if non empty --- src/actions.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/actions.cpp b/src/actions.cpp index f08a4bc9..22229951 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -1835,7 +1835,13 @@ void ApplyFilter::run() Filterable *f = dynamic_cast(myScreen); std::string filter = f->currentFilter(); - + // if filter is already here, apply it + if (!filter.empty()) + { + f->applyFilter(filter); + myScreen->refreshWindow(); + } + Statusbar::lock(); Statusbar::put() << NC::Format::Bold << "Apply filter: " << NC::Format::NoBold; wFooter->setGetStringHelper(Statusbar::Helpers::ApplyFilterImmediately(f, filter));