From 430c41cd05310e1609e59443927234fcb4493f1b Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sun, 16 Jul 2023 20:15:48 +0200 Subject: [PATCH] Fix display of comment char in "lyxlex" debug channel --- src/Lexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lexer.cpp b/src/Lexer.cpp index ab052f5b77..eabe694a6a 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -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'); -- 2.39.5