forked from starnakin/IronGOLEM
fix geadline
This commit is contained in:
@ -89,6 +89,8 @@ geadline2(prompt, text)
|
||||
esccode('D');
|
||||
}
|
||||
}
|
||||
} else if (c == '\n') {
|
||||
return buf;
|
||||
} else {
|
||||
size = size + 1;
|
||||
if (size >= capacity) {
|
||||
@ -115,16 +117,11 @@ geadline2(prompt, text)
|
||||
esccode('D');
|
||||
}
|
||||
i = i + 1;
|
||||
if (c == '\n')
|
||||
return buf;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
geadline(prompt)
|
||||
{
|
||||
geadline2(prompt, NULL);
|
||||
}
|
||||
geadline(prompt) => geadline2(prompt, NULL);
|
||||
|
||||
esccode(c)
|
||||
{
|
||||
|
Reference in New Issue
Block a user