Fix display of comment char in "lyxlex" debug channel

This commit is contained in:
Jean-Marc Lasgouttes 2023-07-16 20:15:48 +02:00
parent 999b95398d
commit 430c41cd05

View File

@ -300,7 +300,7 @@ bool Lexer::Pimpl::next(bool esc /* = false */)
string dummy;
getline(is, dummy);
LYXERR(Debug::LYXLEX, "Comment read: `" << c << dummy << '\'');
LYXERR(Debug::LYXLEX, "Comment read: `" << string(1, c) << dummy << '\'');
#else
// unfortunately ignore is buggy (Lgb)
is.ignore(100, '\n');