Created by: wang-ye
For a concrete example, when I used the autojump tool, I often saw this off-by-1 error: $ j data__ data__1__/Users/ye_wang/data/src/test data__2__/Users/ye_wang/dataeng/src data__3__/Users/ye_wang/dataeng/java/com $ j data__2 /Users/ye_wang/dataeng/java/com
This PR fixes the above issue.