mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 03:15:21 +08:00
Silly scope bug. Thanks, gcc
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+2
-1
@@ -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...
|
// but it is too hard to figure out for now...
|
||||||
if (wrap()) {
|
if (wrap()) {
|
||||||
// if there is a space in the pasted text, the whole line may have rewrapped
|
// 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 (text[i]==' ') break;
|
||||||
if (i==ilen)
|
if (i==ilen)
|
||||||
while (b > 0 && !isspace(index(b) & 255) && index(b)!='\n') b--;
|
while (b > 0 && !isspace(index(b) & 255) && index(b)!='\n') b--;
|
||||||
|
|||||||
Reference in New Issue
Block a user