Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ int main(int argc, char **argv)

case SDLK_BACKSPACE: {
editor_backspace(&editor);
editor.last_stroke = SDL_GetTicks();
}
break;

Expand Down Expand Up @@ -286,14 +285,12 @@ int main(int argc, char **argv)
editor_stop_search(&editor);
} else {
editor_insert_char(&editor, '\n');
editor.last_stroke = SDL_GetTicks();
}
}
break;

case SDLK_DELETE: {
editor_delete(&editor);
editor.last_stroke = SDL_GetTicks();
}
break;

Expand Down Expand Up @@ -354,7 +351,6 @@ int main(int argc, char **argv)
} else {
editor_move_line_up(&editor);
}
editor.last_stroke = SDL_GetTicks();
}
break;

Expand All @@ -365,7 +361,6 @@ int main(int argc, char **argv)
} else {
editor_move_line_down(&editor);
}
editor.last_stroke = SDL_GetTicks();
}
break;

Expand All @@ -376,7 +371,6 @@ int main(int argc, char **argv)
} else {
editor_move_char_left(&editor);
}
editor.last_stroke = SDL_GetTicks();
}
break;

Expand All @@ -387,10 +381,10 @@ int main(int argc, char **argv)
} else {
editor_move_char_right(&editor);
}
editor.last_stroke = SDL_GetTicks();
}
break;
}
editor.last_stroke = SDL_GetTicks();
}
}
break;
Expand Down