diff options
Diffstat (limited to 'apps/plugins/text_editor.c')
| -rw-r--r-- | apps/plugins/text_editor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index 52e229d..9f54128 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c @@ -91,8 +91,8 @@ int _do_action(int action, char* str, int line) if (line > line_count) return 0; len = rb->strlen(&buffer[c])+1; - rb->memmove(&buffer[c],&buffer[c+len],char_count); char_count -= len; + rb->memmove(&buffer[c],&buffer[c+len],char_count); line_count--; break; case ACTION_UPDATE: |