From a235b46795c041fa401f31e1320fcde460a69935 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 3 Nov 2013 18:53:45 +0100 Subject: [PATCH] inpcom.c, add missing condition `!comfile' for .title and .end processing --- src/frontend/inpcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index f0074d0a5..05518eef0 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -907,7 +907,7 @@ inp_read(FILE *fp, int call_depth, char *dir_name, bool comfile, bool intfile) add a terminal ".end" card */ - if (call_depth == 0) { + if (call_depth == 0 && !comfile) { if (found_end == TRUE) { struct line *x = xx_new_line(NULL, copy(".end"), line_number++, line_number_orig++); end->li_next = x; @@ -916,7 +916,7 @@ inp_read(FILE *fp, int call_depth, char *dir_name, bool comfile, bool intfile) } /* Replace first line with the new title, if available */ - if (call_depth == 0 && new_title) { + if (call_depth == 0 && !comfile && new_title) { tfree(cc->li_line); cc->li_line = new_title; }