tweak textedit sample fix

pull/5/merge
Sean Barrett 2014-06-06 23:59:38 -07:00
parent 885b1b7ded
commit 2684499fce
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ void layout_func(StbTexteditRow *row, STB_TEXTEDIT_STRING *str, int start_i)
int delete_chars(STB_TEXTEDIT_STRING *str, int pos, int num)
{
memmove(&str->string[pos], &str->string[pos+num], str->stringlen - pos - num);
memmove(&str->string[pos], &str->string[pos+num], str->stringlen - (pos+num));
str->stringlen -= num;
return 1; // always succeeds
}