mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 23:56:24 -04: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:
parent
6941b81992
commit
851afe94f5
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue