From e48786961a865289b3cf4b9f86ba014a250bf14e Mon Sep 17 00:00:00 2001
From: James R <justsomejames2@gmail.com>
Date: Wed, 15 Mar 2023 11:33:37 -0700
Subject: [PATCH] exec: pass on com_flags

---
 src/command.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/command.c b/src/command.c
index b22f03d1a..f73bb3b26 100644
--- a/src/command.c
+++ b/src/command.c
@@ -794,8 +794,8 @@ static void COM_Exec_f(void)
 		CONS_Printf(M_GetText("executing %s\n"), COM_Argv(1));
 
 	// insert text file into the command buffer
-	COM_BufAddText((char *)buf);
-	COM_BufAddText("\n");
+	COM_BufAddTextEx((char *)buf, com_flags);
+	COM_BufAddTextEx("\n", com_flags);
 
 	// free buffer
 	Z_Free(buf);
-- 
GitLab