diff options
| author | citrons <citrons@mondecitronne.com> | 2025-06-05 19:42:46 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-06-07 16:02:18 -0500 |
| commit | 0f1c3ef1871f311d79f8274585bdb2925152f576 (patch) | |
| tree | b1b281eebc8dd2a8f07ddaad698515cfbe25b517 /client/main.go | |
| parent | 2d54af98b89d5f7ff43bc0d887e42bde7ef87dbc (diff) | |
limit size of command window preview
Diffstat (limited to 'client/main.go')
| -rw-r--r-- | client/main.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/client/main.go b/client/main.go index c9da6c3..5993cf6 100644 --- a/client/main.go +++ b/client/main.go @@ -39,7 +39,15 @@ func main() { redraw = true case <-drawTick: if redraw { - globalApp.show() + for i := 0; i < 2; i++ { + // some information takes two passes to propogate + tui.Clear() + globalApp.show() + tui.DrawLayout() + } + if tui.Present() != nil { + os.Exit(-1) + } redraw = false } case text := <-globalApp.activePaste: |
