From f81f6999493ac6eb3592560046a0a7a6076f7a48 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 27 Jan 2000 20:12:20 +0000 Subject: zsh-workers/9442 --- Src/Zle/compresult.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/Zle/compresult.c') diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index 6794e45d3..fb0e478cc 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -719,7 +719,8 @@ do_single(Cmatch m) /* We are currently not in a menu-completion, * * so set the position variables. */ minfo.pos = wb; - minfo.we = (movetoend >= 2 || (movetoend == 1 && !menucmp)); + minfo.we = (movetoend >= 2 || (movetoend == 1 && !menucmp) || + (!movetoend && cs == we)); minfo.end = we; } /* If we are already in a menu-completion or if we have done a * -- cgit 1.4.1