From 8211e7e83af26406fd451afef03b9c6e2bb5017d Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Mon, 22 Jul 2024 05:56:18 -0500 Subject: [PATCH] inspector: fix mode prefix by prepending '?' only to private modes The inspector lists modes by their parameter when used to enable or disable the mode. Private modes are enabled by using a '?' in the sequence - however this '?' character was prepended to the ANSI modes. --- src/inspector/Inspector.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inspector/Inspector.zig b/src/inspector/Inspector.zig index 4f30318fc..755a69618 100644 --- a/src/inspector/Inspector.zig +++ b/src/inspector/Inspector.zig @@ -596,7 +596,7 @@ fn renderModesWindow(self: *Inspector) void { _ = cimgui.c.igTableSetColumnIndex(1); cimgui.c.igText( "%s%d", - if (tag.ansi) "?" else "", + if (tag.ansi) "" else "?", @as(u32, @intCast(tag.value)), ); }