summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2026-06-06 16:40:12 +0200
committerMikael Magnusson <mikachu@gmail.com>2026-06-10 05:20:51 +0200
commit2136ff7f5045c963e5a41e920350b9a884752492 (patch)
treea831c222d3f3dadb3aeebca4bef18948ec621482 /Completion/Unix/Command
parent54687: fix brace completion (diff)
downloadzsh-2136ff7f5045c963e5a41e920350b9a884752492.tar
zsh-2136ff7f5045c963e5a41e920350b9a884752492.tar.gz
zsh-2136ff7f5045c963e5a41e920350b9a884752492.tar.bz2
zsh-2136ff7f5045c963e5a41e920350b9a884752492.tar.lz
zsh-2136ff7f5045c963e5a41e920350b9a884752492.tar.xz
zsh-2136ff7f5045c963e5a41e920350b9a884752492.tar.zst
zsh-2136ff7f5045c963e5a41e920350b9a884752492.zip
54688: handle Stéphane correctly
In the original report we had [[ é = *$'\xa9' ]] which has op == P_STAR, in this case charstart is filled out inline, in the other cases it's done by the patrepeat function. If ptlen > P_LS_LEN(next) we have returned, if it is < then we have backtracked into the region where charstart is valid and we can check that, and finally if they are equal we know we are on a valid character boundary (but charstart might not be valid here, in fact multiple tests fail if you leave out the ptlen check). Separately, % [[ éé = é#$'\xa9' ]]; echo $? pattern.c:4113: closure following more than one character 0 % [[ éé = (é)#$'\xa9' ]]; echo $? 1 so just treat multibyte single characters as "not simple", which fixes that case too.
Diffstat (limited to 'Completion/Unix/Command')
0 files changed, 0 insertions, 0 deletions