From c712e7511a6b450e6833aead65ef8b8c0bc70ff1 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Tue, 10 May 2016 23:17:19 -0700 Subject: 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 --- ChangeLog | 9 ++++++--- Src/lex.c | 4 ++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4c10e772a..048b355b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2016-05-10 Barton E. Schaefer + * 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 @@ -200,9 +203,9 @@ 2016-04-07 Barton E. Schaefer - * 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 diff --git a/Src/lex.c b/Src/lex.c index 25b372a3c..e36a01ec8 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -1795,6 +1795,10 @@ gotword(void) if (zlemetacs >= nwb) { wb = nwb; we = nwe; + } else { + wb = zlemetacs + addedx; + if (we < wb) + we = wb; } lexflags = 0; } -- cgit v1.2.3