| ... | ... | @@ -80,7 +80,7 @@ pub fn forString(out: anytype, in: anytype, comptime prompt: []const u8, alloc: |
| 80 | 80 | try out.print(comptime ansi.color.Fg(.Green, "? "), .{}); |
| 81 | 81 | try out.print(comptime ansi.color.Bold(prompt ++ " "), .{}); |
| 82 | 82 | |
| 83 | | if (default != null) { |
| 83 | if (default != null and default.?.len > 0) { |
| 84 | 84 | try out.print(ansi.style.Faint ++ "(", .{}); |
| 85 | 85 | try out.print("{s}", .{default.?}); |
| 86 | 86 | try out.print(")" ++ ansi.style.ResetIntensity ++ " ", .{}); |