We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b70d85e commit c2dcd40Copy full SHA for c2dcd40
password.c
@@ -146,7 +146,7 @@ void swaylock_handle_key(struct swaylock_state *state,
146
state->input_state = INPUT_STATE_CLEAR;
147
cancel_password_clear(state);
148
} else {
149
- if (backspace(&state->password)) {
+ if (backspace(&state->password) && state->password.len != 0) {
150
state->input_state = INPUT_STATE_BACKSPACE;
151
schedule_password_clear(state);
152
update_highlight(state);
0 commit comments