Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show cleared state when backspacing last character #301

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iyzana
Copy link

@iyzana iyzana commented Jun 29, 2023

Typing A<backspace> did not result in the cleared state even though the buffer was empty. One had to press backspace one more time to reach it.

I also tried always returning pw->len != 0 from backspace() after the buffer has been modified, which fixes this as well.
But I decided against that, because then the meaning of the return value is unintuitive.

@mstoeckl
Copy link
Contributor

While I think this is a good idea, I should warn that i3lock has the same behavior as current swaylock in which the "cleared"/"no input" message only shows up when pressing backspace on an already empty password buffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants