Browse Source

Merge branch 'patch-1' of https://github.com/mastensg/stb into working

Sean Barrett 6 years ago
parent
commit
aa223d9693
1 changed files with 0 additions and 1 deletions
  1. 0 1
      stb_textedit.h

+ 0 - 1
stb_textedit.h

@@ -558,7 +558,6 @@ static void stb_textedit_find_charpos(StbFindState *find, STB_TEXTEDIT_STRING *s
 
 
    // now scan to find xpos
    // now scan to find xpos
    find->x = r.x0;
    find->x = r.x0;
-   i = 0;
    for (i=0; first+i < n; ++i)
    for (i=0; first+i < n; ++i)
       find->x += STB_TEXTEDIT_GETWIDTH(str, first, i);
       find->x += STB_TEXTEDIT_GETWIDTH(str, first, i);
 }
 }