]> git.lyx.org Git - lyx.git/blobdiff - src/Lexer.cpp
(finishing patch -- question was restored, but there were still problems)
[lyx.git] / src / Lexer.cpp
index 778a0f2218338df5e781a6feacb35da599752eee..d824da0364542253cbc713202cb616f5831b4d2c 100644 (file)
@@ -473,7 +473,7 @@ bool Lexer::Pimpl::eatLine()
                is.get(cc);
                c = cc;
                //LYXERR(Debug::LYXLEX, "Lexer::EatLine read char: `" << c << '\'');
-               if (c != '\r')
+               if (c != '\r' && is)
                        buff.push_back(c);
        }