1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-10-08 22:52:12 +02:00

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.
This commit is contained in:
Stefan Haller
2025-09-06 16:20:07 +02:00
parent 6941b81992
commit 851afe94f5

View File

@@ -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)
}