Config view: Test connections below the service settings; hide a stale cursor
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -175,6 +175,10 @@ func New(cfg *config.Config) *App {
|
||||
AddItem(a.status, 1, 0, false)
|
||||
|
||||
a.app.SetBeforeDrawFunc(func(s tcell.Screen) bool {
|
||||
// A focused text field shows the cursor again while it is drawn. Hiding it
|
||||
// first covers focus moves that bypass tview (arrow keys in forms), which
|
||||
// would leave the cursor behind in the field that was left.
|
||||
s.HideCursor()
|
||||
a.screen = s
|
||||
a.cellAspect = cellAspectOf(s)
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user