summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-09 01:40:57 -0600
committerJeff Carr <[email protected]>2025-02-09 01:40:57 -0600
commitb8b8a409ea77f457bbb3490f5282bf9b3ff88c3e (patch)
treed584d7cefb0bf6a1976d9b16567e25d57621c39b /init.go
parent010bd2a33fc64e182fe1190e11d6ef2f841088f8 (diff)
show stdout buffer when it is small
Diffstat (limited to 'init.go')
-rw-r--r--init.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.go b/init.go
index 8b2a7be..4810658 100644
--- a/init.go
+++ b/init.go
@@ -247,9 +247,13 @@ func refreshGocui() {
continue
}
if time.Since(lastRefresh) > 1000*time.Millisecond {
+ // artificially pause clock while dragging.
+ // this is a reminder to make this refresh code smarter
+ // after the switch to protocol buffers
if me.mouse.mouseUp {
// log.Info("refresh now on mouseUp")
// todo: add logic here to see if the application has changed anything
+ // me.baseGui.UpdateAsync(testRefresh) // probably don't need this
me.baseGui.Update(testRefresh)
if me.clock.tk != nil && !me.showHelp {
// also double check the gocui view exists