On Sun, Dec 21, 2025 at 01:08:35PM +0900, Yokota K. wrote: > > 2025/12/20 2:30???José Matos <[email protected]>????????????: > > > > Since this is an assertion is it possible to put code there to give more > > context > > of what can be wrong? > > > > What could that code be? > > If things were working fine, > pos_type pos = sl.pos(); > in Cursor.cpp line 2421 should have set cursor position correctly. So, > something strange could have happened here. > > One possibility is > CursorSlice const & sl = innerTextSlice(); > didn't point to the cursor slice as expected. > > It can be either checked by a debugger or by inserting a line, say, > LYXERR0(???cursor position = ??? << pos << ??? sl address = ??? << &sl > << ??? sl empty? ??? << sl.empty()); > right after line 2421 of Cursor.cpp. The above line emits a message in the > standard output, so it can be viewed if lyx is started from a command line.
Koji, can you add this debug message into the tree? This is likely not the last time we get this report... Pavel -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
