about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-07 09:16:37 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-07 09:16:37 +0000
commit920c353740f518d800e677b3477cf9068a57aeaf (patch)
tree1c7c3df57f4845e526ca134e7e81fc921d2cc91a
parent2562bd3b77145fd50d5b1c4f54054fc60a53eb6c (diff)
downloadzsh-920c353740f518d800e677b3477cf9068a57aeaf.tar.gz
zsh-920c353740f518d800e677b3477cf9068a57aeaf.tar.xz
zsh-920c353740f518d800e677b3477cf9068a57aeaf.zip
cursor placed on wrong word part with ** match spec (10573)
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/compmatch.c6
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b1e324cb0..0ff64832b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-04-07  Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
 
+	* 10573: Src/Zle/compmatch.c: cursor placed on wrong word part
+ 	with ** match spec
+	
 	* 10571: Completion/Core/_main_complete,
  	Completion/Core/_path_files: missing initialisations, -W with
  	multiple directories didn't work
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c
index 0a377ddb0..00072b0ee 100644
--- a/Src/Zle/compmatch.c
+++ b/Src/Zle/compmatch.c
@@ -1705,11 +1705,17 @@ sub_join(Cline a, Cline b, Cline e, int anew)
 	    a->prefix = cp_cline(ca, 0);
 
 	    if (anew) {
+		int f = e->flags;
+
 		join_psfx(e, a, NULL, NULL, 0);
+		e->flags = f;
 		if (e->prefix)
 		    return max - min;
 	    } else {
+		int f = e->flags;
+
 		join_psfx(a, e, NULL, NULL, 0);
+		e->flags = f;
 		if (a->prefix)
 		    return max - min;
 	    }