diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index 52e229d108..9f5412810d 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: