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().

I’m going to apply the attached patch to the source since it is obvious.

José, could you test with the patch or the updated 2.5.x source?

I hope it solves the problem.

Koji

Attachment: updateOnBVChange.patch
Description: Binary data

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

Reply via email to