From 0c94a651ee63aa30d0248d1cc68445b9e7c4b555 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 22 Apr 2017 12:27:37 +0200 Subject: [PATCH] inpcom.c, expand_section_ref(), #3/7, simplify --- src/frontend/inpcom.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 952443c0a..dc98e7757 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -2423,13 +2423,11 @@ expand_section_ref(struct line *c, char *dir_name) struct line *t = section_def; for (; t; t=t->li_next) { newl = xx_new_line(NULL, copy(t->li_line), t->li_linenum, t->li_linenum_orig); - if (t != section_def) - cend->li_next = newl; - else { - cend->li_next = newl; + if (t == section_def) { newl->li_line[0] = '*'; newl->li_line[1] = '<'; } + cend->li_next = newl; cend = newl; if(ciprefix(".endl", t->li_line)) break;