Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
juliekoubova committed Jun 29, 2024
1 parent 6da5309 commit 2f660f8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions users/juliekoubova/vim/perform_action.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,10 @@ void vim_perform_action(vim_action_t action, vim_send_type_t type) {
if ((action & VIM_MASK_ACTION) == VIM_ACTION_LINE) {
type = VIM_SEND_TAP;
vim_send(line_start, type);
uint8_t repeat = pending.repeat ? pending.repeat : 1;
const uint16_t end_right[] = {LSFT(line_end), LSFT(KC_RIGHT)};
uint8_t repeat = pending.repeat;
pending.repeat = 0;
if (repeat == 0) {
repeat = 1;
}
vim_send_repeated_multi(repeat, end_right, 2);
pending.repeat = 0;
}

if (code16 != KC_NO) {
Expand Down

0 comments on commit 2f660f8

Please sign in to comment.