From 4bd574aaf9ef8f560b4ada9d1bcece20d432fae2 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 18 Dec 2012 16:03:29 +0100 Subject: [PATCH] Use named args when calling find_matches This should make it clearer at first glance where True and False is referring to. --- bin/autojump | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/autojump b/bin/autojump index 91ef235..f1d8991 100755 --- a/bin/autojump +++ b/bin/autojump @@ -424,15 +424,16 @@ def shell_utility(): results = [] if not ALWAYS_IGNORE_CASE: - results = find_matches(db, patterns, max_matches, False) + results = find_matches(db, patterns, max_matches, ignore_case=False) # if no results, try ignoring case if ARGS.complete or not results: - results = find_matches(db, patterns, max_matches, True) + results = find_matches(db, patterns, max_matches, ignore_case=True) # if no results, try approximate matching if not results: - results = find_matches(db, patterns, max_matches, True, True) + results = find_matches(db, patterns, max_matches, ignore_case=True, + fuzzy=True) quotes = "" if ARGS.complete and ARGS.bash: quotes = "'"