summaryrefslogtreecommitdiff
path: root/src/mouse.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/mouse.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/mouse.zig')
-rw-r--r--src/mouse.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mouse.zig b/src/mouse.zig
index 5f0a6c4b..ac72481a 100644
--- a/src/mouse.zig
+++ b/src/mouse.zig
@@ -788,7 +788,8 @@ fn dragRelease(p: *Pardes, button: Mouse.Button) void {
.move => |d| {
layout.movePane(p, d.id, d.cur_x, d.cur_y);
if (layout.findPane(p, d.id)) |f| p.setActiveColumn(f.col);
- // a file moved into the left column evicts a lone unused shell
+ // BootShell replace: a file moved into the left column closes a
+ // lone unused shell there
if (p.panes[d.id]) |mt| if (mt.file != null) {
if (layout.findPane(p, d.id)) |f| if (f.col == 0)
exec.evictLonePristineTty(p, 0, d.id);