Make terminal UI shutdown idempotent
This commit is contained in:
committed by
Brandon McGinty
parent
41759b95f6
commit
5bf3ed8b84
@@ -231,7 +231,7 @@ Priority 3: configuration, UI, and binding hardening
|
||||
never closes the FIFO descriptor. Exit the reader on terminal errors,
|
||||
close the descriptor, and make shutdown cancellable.
|
||||
|
||||
30. Empty UI tree can panic; UI startup errors are swallowed
|
||||
[x] 30. Empty UI tree can panic; UI startup errors are swallowed
|
||||
Files: uiterm/tree.go, uiterm/ui.go
|
||||
Tree.uiKeyEvent indexes lines[activeLine] for a non-arrow key even when
|
||||
no lines exist. Guard empty trees. Ui.Run returns nil when termbox.Init
|
||||
|
||||
Reference in New Issue
Block a user