]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView2.C
Small fix.
[lyx.git] / src / BufferView2.C
index c8675a0a1cc53abd8751415a4cf1c2bcbb20fa52..f241071ed2787093c4bee704cabafa728a8c3d97 100644 (file)
@@ -73,10 +73,11 @@ bool BufferView::insertLyXFile(string const & filen)
                           MakeDisplayPath(fname, 50));
                return false;
        }
+       
+       char c = ifs.peek();
+       
        LyXLex lex(0, 0);
        lex.setStream(ifs);
-       char c; ifs.get(c);
-       ifs.putback(c);
 
        bool res = true;