Le 20/01/2026 à 07:05, Koji Yokota a écrit :
2026/01/19 20:10、Jean-Marc Lasgouttes <[email protected]>のメール:

What I do not really understand, is why the input method object hold a pointer to a cursor instead of a buffer view.

Pointer to the cursor is needed since input method is now relevant to contents of text.

It seems that d->cur_ is not correct in GuiInputMethod::toggleInputMethodAcceptance().The large cur/paste is probably to blame.

The problem may be related to the fact that d->cur_ is not updated after the change of BufferView. The instance of input method is owned by GuiWorkArea, not BufferView, so it should be updated on the event of GuiWorkArea::bufferViewChanged().

The patch makes sense in general. However, José, did you change BufferView in your use case?

JMarc
--
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to