From 19f62e8d412eeddbbfde4a1b9ac05b9ab6146104 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 23 May 2013 14:38:47 +0900 Subject: [PATCH] require consecutive match when filtering (#786) --- aqt/studydeck.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aqt/studydeck.py b/aqt/studydeck.py index 7471f9099..633afafec 100644 --- a/aqt/studydeck.py +++ b/aqt/studydeck.py @@ -94,10 +94,9 @@ class StudyDeck(QDialog): filt = filt.lower() if not filt: return True - for c in filt: - if c not in name: + for word in filt.split(" "): + if word not in name: return False - name = name[name.index(c)+1:] return True def onReset(self):