1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

38468: wb,we values in gotword() needed assignment in additional case to avoid core dump

Bug introduced by 38248.

Also fix ChangeLog entry for 38248 to correctly reference Src/lex.c
This commit is contained in:
Barton E. Schaefer 2016-05-10 23:17:19 -07:00
parent 597fa5ee5d
commit c712e7511a
2 changed files with 10 additions and 3 deletions

View file

@ -1,5 +1,8 @@
2016-05-10 Barton E. Schaefer <schaefer@zsh.org>
* 38468: Src/lex.c: wb,we values in gotword() needed assignment in
additional case to avoid core dump (bug introduced by 38248)
* 38463: Src/Zle/zle_keymap.c: use immortal widgets in .safe keymap
2016-05-10 Daniel Shahaf <d.s@daniel.shahaf.name>
@ -200,9 +203,9 @@
2016-04-07 Barton E. Schaefer <schaefer@zsh.org>
* 38248: Src/Zle/zle_tricky.c: fix word position calculation
when completing on or just before a redirection operator; the
completion result is still in need of some repair
* 38248: Src/lex.c, Src/Zle/zle_tricky.c: fix word position
calculation when completing on or just before a redirection
operator; the completion result is still in need of some repair
2016-04-03 Barton E. Schaefer <schaefer@zsh.org>

View file

@ -1795,6 +1795,10 @@ gotword(void)
if (zlemetacs >= nwb) {
wb = nwb;
we = nwe;
} else {
wb = zlemetacs + addedx;
if (we < wb)
we = wb;
}
lexflags = 0;
}