about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-01-27 20:12:20 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-01-27 20:12:20 +0000
commitf81f6999493ac6eb3592560046a0a7a6076f7a48 (patch)
tree661a74352e8ee36e6b08cdebb7310f75116ddb52
parentb377d671103b8e16e337e76b9aeb92512d136782 (diff)
downloadzsh-f81f6999493ac6eb3592560046a0a7a6076f7a48.tar.gz
zsh-f81f6999493ac6eb3592560046a0a7a6076f7a48.tar.xz
zsh-f81f6999493ac6eb3592560046a0a7a6076f7a48.zip
zsh-workers/9442
-rw-r--r--Src/Zle/compresult.c3
1 files changed, 2 insertions, 1 deletions
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 *