about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-28 12:42:24 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-28 12:42:24 +0000
commit5a3fe9220dd77337202f8f095444556f4129a3f9 (patch)
tree3681c4660deeca3511b3673bd003b18ff5611dee
parenta3cf03751aea772f1e0307c8899b5e4f751ff24c (diff)
downloadzsh-5a3fe9220dd77337202f8f095444556f4129a3f9.tar.gz
zsh-5a3fe9220dd77337202f8f095444556f4129a3f9.tar.xz
zsh-5a3fe9220dd77337202f8f095444556f4129a3f9.zip
misplaced cursor with partial-word matching (11007)
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/compmatch.c10
2 files changed, 5 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 76caab469..6c45b4491 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-04-28  Sven Wischnowsky  <wischnow@informatik.hu-berlin.de>
 
+	* 11007: Src/Zle/compmatch.c: misplaced cursor with partial-word
+ 	matching
+	
 	* Tanaka: 11001: Completion/User/_enscript, Completion/User/_lp,
 	Completion/User/_printers: printer-detection moved to new
 	_printers; used by _enscript
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c
index 3a6a849b9..f38ea6a9f 100644
--- a/Src/Zle/compmatch.c
+++ b/Src/Zle/compmatch.c
@@ -1917,14 +1917,8 @@ join_clines(Cline o, Cline n)
 
 		if (tn) {
 		    diff = sub_join(o, n, tn, 0);
-
-		    if (po && po->prefix && cmp_anchors(n, pn, 0)) {
-			po->flags |= CLF_MISS;
-			po->max += diff;
-		    } else {
-			o->flags |= CLF_MISS;
-			o->max += diff;
-		    }
+		    o->flags |= CLF_MISS;
+		    o->max += diff;
 		    n = tn;
 		    po = o;
 		    o = o->next;