浏览代码

Fix regression with `j foo__`

With `j foo__` the first index is assumed now again.

Fixes https://github.com/joelthelion/autojump/issues/271
pull/273/merge
Daniel Hahler 10 年前
父节点
当前提交
27a01662a5
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      bin/autojump

+ 5
- 0
bin/autojump 查看文件

@ -390,6 +390,11 @@ def main(args): # noqa
tab_needle, tab_index, tab_path = \
get_tab_entry_info(first(needles), TAB_SEPARATOR)
# Handle `j foo__`, assuming first index.
if not tab_path and not tab_index \
and tab_needle and needles[0] == tab_needle + TAB_SEPARATOR:
tab_index = 1
if tab_path:
print_local(tab_path)
elif tab_index:

正在加载...
取消
保存