summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_pwgen
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2026-09-08 13:42:23 +0200
committerMikael Magnusson <mikachu@gmail.com>2026-09-18 08:11:04 +0200
commit26ba0e39b9ccfebb4ad6aa288e2e7a2e6f48b915 (patch)
treed677b74ff86c6df7c41231a1476419e05ffc0425 /Completion/Unix/Command/_pwgen
parent55130: extend inline documentation and explain some terminal quirks (diff)
downloadzsh-26ba0e39b9ccfebb4ad6aa288e2e7a2e6f48b915.tar
zsh-26ba0e39b9ccfebb4ad6aa288e2e7a2e6f48b915.tar.gz
zsh-26ba0e39b9ccfebb4ad6aa288e2e7a2e6f48b915.tar.bz2
zsh-26ba0e39b9ccfebb4ad6aa288e2e7a2e6f48b915.tar.lz
zsh-26ba0e39b9ccfebb4ad6aa288e2e7a2e6f48b915.tar.xz
zsh-26ba0e39b9ccfebb4ad6aa288e2e7a2e6f48b915.tar.zst
zsh-26ba0e39b9ccfebb4ad6aa288e2e7a2e6f48b915.zip
55140: fix pointer math in join_sub
The original report states: mkdir -p /tmp/x && cd /tmp/x && touch ab-xyFOO ac-xyBAR cat -xy<TAB> autocompletes to `aB-xy`, and mkdir -p /tmp/t && cd /tmp/t && touch 1abc 2abc cat a<TAB> autocompletes to `Aabc`. check_cmdata has already advanced md->str by md->len when sfx is true, so doing it again here is incorrect. bld_line then wants a pointer to the start of the string, so subtract the length when sfx is true, since it is an end pointer in that case (as is done in many other places in this function already).
Diffstat (limited to 'Completion/Unix/Command/_pwgen')
0 files changed, 0 insertions, 0 deletions