mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Small fix in theide commandline mode
git-svn-id: svn://ultimatepp.org/upp/trunk@369 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ea699eb2a9
commit
215bdadf0a
5 changed files with 1033 additions and 345 deletions
|
|
@ -36,10 +36,17 @@ static int sAppf(int c) {
|
|||
return c >= ' ' || c == '\n' ? c : c == '\t' ? ' ' : 0;
|
||||
}
|
||||
|
||||
static int sCharFilterNoCr(int c) {
|
||||
return c == '\r' ? 0 : c;
|
||||
}
|
||||
|
||||
void Console::Append(const String& s) {
|
||||
if(s.IsEmpty()) return;
|
||||
if(console) {
|
||||
Puts(s);
|
||||
String t = Filter(s, sCharFilterNoCr);
|
||||
if(*t.Last() == '\n')
|
||||
t.Trim(t.GetCount() - 1);
|
||||
Puts(t);
|
||||
return;
|
||||
}
|
||||
int l, h;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue