summaryrefslogtreecommitdiff
path: root/src/terminal.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal.zig')
-rw-r--r--src/terminal.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal.zig b/src/terminal.zig
index 05054521..755fde6c 100644
--- a/src/terminal.zig
+++ b/src/terminal.zig
@@ -1363,7 +1363,8 @@ const Rows = struct {
const empty_grid = [1][]const u8{""};
/// What LEAVING raw tty mode does to one prompt row, decided from its cells
-/// alone. See config.tty_blank for why any of this happens.
+/// alone: OSC 133 prompt cells are hidden in normal mode, what was typed at
+/// them stays.
const PromptCut = union(enum) {
/// show the row exactly as ghostty dumped it
keep,
@@ -1375,7 +1376,6 @@ const PromptCut = union(enum) {
};
fn promptCut(pin: ghostty_vt.Pin) PromptCut {
- if (config.tty_blank == .prompt_and_input) return .blank;
const cells = pin.cells(.all);
var cols: usize = 0;
while (cols < cells.len and cells[cols].semantic_content == .prompt) cols += 1;