Skip to content

Commit 5d26a7a

Browse files
committed
fix help version command for --cmd
1 parent 28e600b commit 5d26a7a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/studio/screens/console.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3589,7 +3589,9 @@ static void onHelp_buttons(Console* console)
35893589

35903590
static void onHelp_version(Console* console)
35913591
{
3592-
consolePrint(console, "\n"TIC_VERSION, CONSOLE_BACK_TEXT_COLOR);
3592+
if(!studio_config(console->studio)->cli)
3593+
printLine(console);
3594+
consolePrint(console, TIC_VERSION, CONSOLE_BACK_TEXT_COLOR);
35933595
}
35943596

35953597
static void onHelp_spec(Console* console)

0 commit comments

Comments
 (0)