diff options
Diffstat (limited to 'src/undo.cpp')
-rw-r--r-- | src/undo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/undo.cpp b/src/undo.cpp index 82f1eda..1ee7cb4 100644 --- a/src/undo.cpp +++ b/src/undo.cpp @@ -20,7 +20,6 @@ #endif #include <stdio.h> -#include <string.h> #include <bsd/sys/queue.h> #include <glib.h> @@ -50,7 +49,7 @@ UndoStack::push(UndoToken *token) #ifdef DEBUG g_printf("UNDO PUSH %p\n", token); #endif - token->pos = strlen(cmdline); + token->pos = cmdline_pos; SLIST_INSERT_HEAD(&head, token, tokens); } else { delete token; |