]> git.lyx.org Git - lyx.git/commitdiff
Fix display of comment char in "lyxlex" debug channel
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 16 Jul 2023 18:15:48 +0000 (20:15 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 17 Jul 2023 21:02:46 +0000 (23:02 +0200)
src/Lexer.cpp

index ab052f5b77be5db7b6b8ab31300506b613d66cd7..eabe694a6a70168dcf9d565896f8ba6a6ccc43d4 100644 (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');