mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-05 21:31:29 +01:00
cursor placed on wrong word part with ** match spec (10573)
This commit is contained in:
parent
2562bd3b77
commit
920c353740
2 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue