diff options
author | Petter Rodhelind <petter.rodhelind@gmail.com> | 2021-03-05 11:22:36 +0100 |
---|---|---|
committer | Petter Rodhelind <petter.rodhelind@gmail.com> | 2021-03-05 11:22:36 +0100 |
commit | 816aa1dd19ca760a94bb7b9d54e768c6aa3af332 (patch) | |
tree | a1f514229b06905f2591c937cc2f7a56950286d1 /ui/tcell | |
parent | bc42522f2958287f952145ae50b3e426b7b69e37 (diff) | |
download | poe-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.go | 4 |
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() |