Skip to content

Commit b6c76eb

Browse files
close root window if we're in root context (fixes #84) (#85)
1 parent 4e84d70 commit b6c76eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nucular.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2765,6 +2765,9 @@ func (ctx *context) autoPosition() (int, int) {
27652765
func (win *Window) Close() {
27662766
if win.idx != 0 {
27672767
win.close = true
2768+
} else {
2769+
// win.idx == 0: Should be in Master window's context.
2770+
win.Master().Close()
27682771
}
27692772
}
27702773

0 commit comments

Comments
 (0)