mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-13 09:06:27 -04:00
Hide the cursor when the password prompt is showing (#4878)
The cursor is a bit of a security concern, because it reveals the length (and typing pattern) of the password. Resolves #4877.
This commit is contained in:
commit
cb2b5c3738
|
|
@ -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