From c05a2d20937b2fee0b54adcbdc76d134a8d3f7a9 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 2 Apr 2001 09:05:47 +0000 Subject: make `_arguments -S' still complete long options after `--'; fix for cursor positioning with partial word match specs (13868) --- Src/Zle/compmatch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/Zle/compmatch.c') 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; } -- cgit 1.4.1