[LyX/master] Improve display of META_INSET in status bar.
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Fri Oct 15 08:49:01 UTC 2021
commit 5f4890721b86f9051c02697c53b62cdcc3c0e558
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Fri Oct 15 11:10:44 2021 +0200
Improve display of META_INSET in status bar.
---
src/Text.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/Text.cpp b/src/Text.cpp
index aa70b18..e379337 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -2149,7 +2149,10 @@ docstring Text::currentState(CursorData const & cur, bool devel_mode) const
if (!par.empty() && cur.pos() < par.size()) {
// Force output of code point, not character
size_t const c = par.getChar(cur.pos());
- os << _(", Char: 0x") << hex << c;
+ if (c == META_INSET)
+ os << ", Char: INSET";
+ else
+ os << _(", Char: 0x") << hex << c;
}
os << _(", Boundary: ") << cur.boundary();
// Row & row = cur.textRow();
More information about the lyx-cvs
mailing list