aboutsummaryrefslogtreecommitdiff
path: root/ui/tcell
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2021-03-05 11:22:36 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2021-03-05 11:22:36 +0100
commit816aa1dd19ca760a94bb7b9d54e768c6aa3af332 (patch)
treea1f514229b06905f2591c937cc2f7a56950286d1 /ui/tcell
parentbc42522f2958287f952145ae50b3e426b7b69e37 (diff)
downloadpoe-816aa1dd19ca760a94bb7b9d54e768c6aa3af332.tar.gz
poe-816aa1dd19ca760a94bb7b9d54e768c6aa3af332.tar.bz2
poe-816aa1dd19ca760a94bb7b9d54e768c6aa3af332.zip
Do not close first column.
Diffstat (limited to 'ui/tcell')
-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()