summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 31dd849..0a7b420 100644
--- a/main.c
+++ b/main.c
@@ -146,9 +146,9 @@ int main(void) {
case SDLK_z:
if (ctrl) {
if (shift) {
- buffer_undo(&text_buffer, 1);
- } else {
buffer_redo(&text_buffer, 1);
+ } else {
+ buffer_undo(&text_buffer, 1);
}
}
break;