From 816aa1dd19ca760a94bb7b9d54e768c6aa3af332 Mon Sep 17 00:00:00 2001 From: Petter Rodhelind Date: Fri, 5 Mar 2021 11:22:36 +0100 Subject: Do not close first column. --- ui/tcell/layout.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3