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 (#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:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user