summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/text_editor.c2
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: