Skip to content

Commit

Permalink
Silly scope bug. Thanks, gcc
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Matthias Melcher committed Aug 17, 2005
1 parent 661c0ff commit 760bca7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Fl_Input_.cxx
Expand Up @@ -594,7 +594,8 @@ int Fl_Input_::replace(int b, int e, const char* text, int ilen) {
// but it is too hard to figure out for now...
if (wrap()) {
// if there is a space in the pasted text, the whole line may have rewrapped
for (int i=0; i<ilen; i++)
int i;
for (i=0; i<ilen; i++)
if (text[i]==' ') break;
if (i==ilen)
while (b > 0 && !isspace(index(b) & 255) && index(b)!='\n') b--;
Expand Down

0 comments on commit 760bca7

Please sign in to comment.