about summary refs log tree commit diff
path: root/Src/Zle/compmatch.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 09:05:47 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 09:05:47 +0000
commitc05a2d20937b2fee0b54adcbdc76d134a8d3f7a9 (patch)
treea0009a0d31505b1bac7f99d66b60b6f3f1325e18 /Src/Zle/compmatch.c
parent9475938761151c0187f40ee36e3e385c6613e1a4 (diff)
downloadzsh-pre-func-move.tar.gz
zsh-pre-func-move.tar.xz
zsh-pre-func-move.zip
make `_arguments -S' still complete long options after `--<TAB>'; fix for cursor positioning with partial word match specs (13868) pre-func-move
Diffstat (limited to 'Src/Zle/compmatch.c')
-rw-r--r--Src/Zle/compmatch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c
index e9c6721ba..fc1e6fb54 100644
--- a/Src/Zle/compmatch.c
+++ b/Src/Zle/compmatch.c
@@ -2076,7 +2076,8 @@ join_clines(Cline o, Cline n)
 
 				if ((diff = sub_join(o, n, tn, 0))) {
 				    o->flags = (o->flags & ~CLF_MISS) | of;
-				    if (po) {
+				    if (po && po->prefix &&
+                                        cmp_anchors(o, po, 0)) {
 					po->flags |= CLF_MISS;
 					po->max += diff;
 				    }