Skip to content

Commit

Permalink
Tab completion should expand to the longest common prefix of all
Browse files Browse the repository at this point in the history
partial matches if globit_best returns 2 or higher.
  • Loading branch information
gijsbers committed Sep 26, 2018
1 parent de8d474 commit 8ae9b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yinput.cc
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ void YInputLine::autoScroll(int delta, const XMotionEvent *motion) {

void YInputLine::complete() {
char* res = 0;
if (1 == globit_best(cstring(fText), &res))
if (1 <= globit_best(cstring(fText), &res))
setText(res);
free(res);
}
Expand Down

0 comments on commit 8ae9b8b

Please sign in to comment.