From bc91905a29eccbfbe83754bb675eefddd4f3ed0e Mon Sep 17 00:00:00 2001 From: William Ting Date: Fri, 21 Mar 2014 18:56:23 -0500 Subject: [PATCH] simplify default path --- bin/autojump | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/autojump b/bin/autojump index eb24a63..3b13824 100755 --- a/bin/autojump +++ b/bin/autojump @@ -382,8 +382,7 @@ def main(args): # noqa elif args.stat: print_stats(load(config), config['data_path']) elif not args.directory: - # default return value so calling shell functions have an argument - # to `cd` to + # always return a path to calling shell functions print_local('.') else: entries = entriefy(load(config)) @@ -404,8 +403,8 @@ def main(args): # noqa first( chain( find_matches(entries, needles), - # always return n argument to calling shell functions - [Entry('.', 0)])).path) + # always return a path to calling shell functions + ['.']))) return 0