From eef22192476854cee0698090352fb9db7e80d4c3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 May 2017 21:24:48 +0530 Subject: [PATCH] Fix incorrect search expression being generated when clicking on ++ entry for hierarchical items --- src/pyj/book_list/search.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/book_list/search.pyj b/src/pyj/book_list/search.pyj index 38df38a995..8f9cb2a54e 100644 --- a/src/pyj/book_list/search.pyj +++ b/src/pyj/book_list/search.pyj @@ -131,7 +131,7 @@ def search_expression_for_item(node, node_state): name = str.replace(name, '"', r'\"') if name[0] is '.': name = '.' + name - if search_state is 'plusplus' or search_state is 'minusminus': + if search_state is '.true' or search_state is '.false': name = '.' + name expr = '{}:"={}{}"'.format(category, name, suffix)