LineReader returns at least '\n'

This commit is contained in:
beard%netscape.com 2000-05-05 04:50:45 +00:00
parent 5a1ab13253
commit ec5da004d9
2 changed files with 2 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}