summaryrefslogtreecommitdiff
path: root/src/exec.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-28 20:13:57 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commit0acd945d85887da88f2863219e706000ca738cdd (patch)
treedb3c4a4b33ce67fc7f7e9e1f8dd96d74edb9fd93 /src/exec.zig
parent54c14c2e65fe15b097bef11919d6ec8d9fce411a (diff)
downloadpardes-0acd945d85887da88f2863219e706000ca738cdd.tar.gz
pardes-0acd945d85887da88f2863219e706000ca738cdd.zip
A document dragged beside the boot shell leaves it; BootShell replace closes it as before
Placement and BootShell are one kind of setting now, a word from an enum, set, flipped bare, and reported by one arm. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/exec.zig')
-rw-r--r--src/exec.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/exec.zig b/src/exec.zig
index 117970d9..22aae10a 100644
--- a/src/exec.zig
+++ b/src/exec.zig
@@ -326,9 +326,11 @@ fn spawnTtyWithMount(p: *Pardes, from: usize, v9fs: bool) ?*Pane {
return nt;
}
-/// when a doc lands in `col`, a lone pristine shell there is clutter — drop
-/// it; absorbVWeight hands its space to the doc
+/// With `BootShell replace`, a doc landing in `col` closes a lone pristine
+/// shell there, the boot's placeholder, and absorbVWeight hands its space to
+/// the doc. With `keep`, the default, the shell stays like any other pane.
pub fn evictLonePristineTty(p: *Pardes, col: usize, keep_id: usize) void {
+ if (p.settings.boot_shell == .keep) return;
var n_tty: usize = 0;
var tty_id: usize = 0;
for (0..p.col_n[col]) |k| {