Skip to content

Commit

Permalink
close root window if we're in root context (fixes #84) (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
justledbetter authored Oct 4, 2024
1 parent 4e84d70 commit b6c76eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nucular.go
Original file line number Diff line number Diff line change
Expand Up @@ -2765,6 +2765,9 @@ func (ctx *context) autoPosition() (int, int) {
func (win *Window) Close() {
if win.idx != 0 {
win.close = true
} else {
// win.idx == 0: Should be in Master window's context.
win.Master().Close()
}
}

Expand Down

0 comments on commit b6c76eb

Please sign in to comment.