aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/tcell/layout.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/tcell/layout.go b/ui/tcell/layout.go
index cb2396c..7a1fa6a 100644
--- a/ui/tcell/layout.go
+++ b/ui/tcell/layout.go
@@ -111,7 +111,9 @@ func (c *Column) CloseWindow(w *Window) {
CurWin = c.windows[j-1]
} else {
// remove column
- workspace.CloseCol(c)
+ if c != workspace.Col(0) {
+ workspace.CloseCol(c)
+ }
// clear clutter
screen.Clear()