From d6a9e222ec6b006c09d6f84beae6ef488a19b214 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Fri, 26 Jul 2019 17:24:59 +0200 Subject: 44582: Fix foregoing commit to use DPUTS() better --- Src/Zle/zle_utils.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Src') diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index d549b885b..2b306fdcd 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -1608,10 +1608,9 @@ unapplychange(struct change *ch) { if(ch->hist != histline) { Histent he = quietgethist(ch->hist); - if(!he) { - dputs(ERRMSG("quietgethist(ch->hist) returned NULL")); + DPUTS(he == NULL, "quietgethist(ch->hist) returned NULL"); + if(he == NULL) return 1; - } zle_setline(he); zlecs = ch->new_cs; return 0; @@ -1653,10 +1652,9 @@ applychange(struct change *ch) { if(ch->hist != histline) { Histent he = quietgethist(ch->hist); - if(!he) { - dputs(ERRMSG("quietgethist(ch->hist) returned NULL")); + DPUTS(he == NULL, "quietgethist(ch->hist) returned NULL"); + if(he == NULL) return 1; - } zle_setline(he); zlecs = ch->old_cs; return 0; -- cgit 1.4.1