mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
LineReader returns at least '\n'
This commit is contained in:
parent
5a1ab13253
commit
ec5da004d9
@ -204,11 +204,10 @@ registers, or set the value of a single register."},
|
||||
|
||||
reader.readLine(line);
|
||||
|
||||
if (line.size() == 0)
|
||||
if (line == "\n")
|
||||
line = lastLine;
|
||||
else
|
||||
{
|
||||
line.append("\n");
|
||||
lastLine = line;
|
||||
}
|
||||
|
||||
|
@ -204,11 +204,10 @@ registers, or set the value of a single register."},
|
||||
|
||||
reader.readLine(line);
|
||||
|
||||
if (line.size() == 0)
|
||||
if (line == "\n")
|
||||
line = lastLine;
|
||||
else
|
||||
{
|
||||
line.append("\n");
|
||||
lastLine = line;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user