From e90b6f5a3b3ec93b502b36a43c80d5e5b975a858 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 7 Mar 2018 11:46:47 +0100 Subject: [PATCH] Add cell number to current state in devel mode This value is added when inside a texted inset with several cells (aka a tabular inset). --- src/Text.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Text.cpp b/src/Text.cpp index 70ffaf6352..1321a534f3 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -1952,6 +1952,8 @@ docstring Text::currentState(CursorData const & cur, bool devel_mode) const if (devel_mode) { os << _(", Inset: ") << &cur.inset(); + if (cur.lastidx() > 0) + os << _(", Cell: ") << cur.idx(); os << _(", Paragraph: ") << cur.pit(); os << _(", Id: ") << par.id(); os << _(", Position: ") << cur.pos(); -- 2.39.5