From 99d92733ea0aa64c6044af8156d0e75882b97f9a Mon Sep 17 00:00:00 2001 From: William Ting Date: Wed, 18 Dec 2013 12:03:43 -0600 Subject: [PATCH] rename global var --- bin/autojump | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/autojump b/bin/autojump index 92b6d83..5306008 100755 --- a/bin/autojump +++ b/bin/autojump @@ -61,7 +61,7 @@ from utils import take VERSION = 'release-v21.8.0' FUZZY_MATCH_THRESHOLD = 0.6 -TAB_COMPLETION_COUNT = 9 +TAB_ENTRIES_COUNT = 9 TAB_SEPARATOR = '__' @@ -322,7 +322,7 @@ def main(): elif args.complete: needle = first(sanitize(args.directory)) tab_entries = take( - TAB_COMPLETION_COUNT, + TAB_ENTRIES_COUNT, find_matches(entriefy(load(config)), needle)) print_tab_menu(needle, tab_entries, TAB_SEPARATOR) elif args.decrease: @@ -350,7 +350,7 @@ def main(): # the needle is actually a tab entry here needle, tab_index = get_needle_and_index(needle, TAB_SEPARATOR) tab_entries = take( - TAB_COMPLETION_COUNT, + TAB_ENTRIES_COUNT, find_matches(entries, needle)) get_ith_path = lambda i, iterable: last(take(i, iterable)).path