From 59d1e1fd9db51d1230774b4602ee3b36e877ab17 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 21 Feb 2014 00:17:32 +0100 Subject: [PATCH] Fix calls to find_matches, which expects a list of needles Fixes https://github.com/joelthelion/autojump/issues/261 --- bin/autojump | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/autojump b/bin/autojump index 13b55f9..71531ee 100755 --- a/bin/autojump +++ b/bin/autojump @@ -208,14 +208,14 @@ def handle_tab_completion(needle, entries): get_ith_path = lambda i, iterable: last(take(i, iterable)).path print_local(get_ith_path( tab_index, - find_matches(entries, tab_needle, check_entries=False))) + find_matches(entries, [tab_needle], check_entries=False))) elif tab_needle: # found partial tab completion entry print_tab_menu( tab_needle, take(TAB_ENTRIES_COUNT, find_matches( entries, - tab_needle, + [tab_needle], check_entries=False)), TAB_SEPARATOR) else: @@ -223,7 +223,7 @@ def handle_tab_completion(needle, entries): needle, take(TAB_ENTRIES_COUNT, find_matches( entries, - needle, + [needle], check_entries=False)), TAB_SEPARATOR)