Skip to content

Commit

Permalink
add one more backspace if it's needed
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Feb 4, 2022
1 parent 21ef448 commit b7b1625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantum/process_keycode/process_autocorrect.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ bool process_autocorrect(uint16_t keycode, keyrecord_t* record) {
code = pgm_read_byte(autocorrect_data + state);

if (code & 128) { // A typo was found! Apply autocorrect.
const uint8_t backspaces = code & 63;
const uint8_t backspaces = (code & 63) + !record->event.pressed;
for (uint8_t i = 0; i < backspaces; ++i) {
tap_code(KC_BSPC);
}
Expand Down

0 comments on commit b7b1625

Please sign in to comment.