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.
This commit is contained in:
Tim Culverhouse
2024-07-22 05:56:18 -05:00
parent 76e0cf1046
commit 8211e7e83a

View File

@ -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)),
);
}