From fa9838efb28cb17a81a6dde07d91233a2260c4f5 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Wed, 11 Oct 2017 19:34:30 +0200 Subject: [PATCH] Do not start prompt with the current search constraint when applying a new one --- NEWS | 1 + src/actions.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 1652e7f5..67d2999c 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ ncmpcpp-0.8.1 (????-??-??) * Using '--quiet' command line argument no longer results in a crash. * If songs in media library have no track numbers, sort them by their display format. * Fixed a situation in which songs added to playlist from media library or playlist editor screens would not be immediately marked as such. +* Do not start prompt with the current search constraint when applying a new one. ncmpcpp-0.8 (2017-05-21) * Configuration variable 'execute_on_player_state_change' was added. diff --git a/src/actions.cpp b/src/actions.cpp index e4d1d510..e2150137 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -3020,7 +3020,7 @@ void findItem(const SearchDirection direction) assert(w != nullptr); assert(w->allowsSearching()); - std::string constraint = w->searchConstraint(); + std::string constraint; try { ScopedValue disabled_autocenter_mode(Config.autocenter_mode, false);