From 920c353740f518d800e677b3477cf9068a57aeaf Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Fri, 7 Apr 2000 09:16:37 +0000 Subject: cursor placed on wrong word part with ** match spec (10573) --- Src/Zle/compmatch.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Src') 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; } -- cgit 1.4.1