]> git.lyx.org Git - lyx.git/blobdiff - src/bufferview_funcs.C
try to position cusor correctly after undo
[lyx.git] / src / bufferview_funcs.C
index 0ef62d3b4850e49628b2d4d5c4266a5cc4e72e65..4914580145fe12d65499f698adb994a3d9653c02 100644 (file)
@@ -359,6 +359,8 @@ string const currentState(BufferView * bv)
        }
 #ifdef DEVEL_VERSION
        state << _(", Paragraph: ") << text->cursor.par()->id();
+       state << "  Inset: " <<
+               (text->cursor.par()->inInset() ? text->cursor.par()->inInset()->id() : -1);
 #endif
        return STRCONV(state.str());
 }