From 851afe94f5d1cbff9cb473cfb3a87a45570c8ce3 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sat, 6 Sep 2025 16:20:07 +0200 Subject: [PATCH] Hide the cursor when the password prompt is showing The cursor is a bit of a security concern, because it reveals the length (and typing pattern) of the password. --- pkg/gui/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gui/context.go b/pkg/gui/context.go index 45b2bdf34..98aea7e8f 100644 --- a/pkg/gui/context.go +++ b/pkg/gui/context.go @@ -196,7 +196,7 @@ func (self *ContextMgr) Activate(c types.Context, opts types.OnFocusOpts) { v.Visible = true - self.gui.c.GocuiGui().Cursor = v.Editable + self.gui.c.GocuiGui().Cursor = v.Editable && v.Mask == 0 c.HandleFocus(opts) }