commit e90b6f5a3b3ec93b502b36a43c80d5e5b975a858
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Wed Mar 7 11:46:47 2018 +0100

    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 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/Text.cpp b/src/Text.cpp
index 70ffaf6..1321a53 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();

Reply via email to