Bo Peng wrote:
FYI, I put the resize trick in order to avoid crash when switching
between windows showing the same Buffer.
I figured it out later. (Cut a comment in the resize function would be
helpful.)
Well, there is a big FIXME explaining that in
GuiWorkArea::focusInEvent() I think. Feel free to add more info inside
BufferView or to link to that FIXME.
This resize triggers a full update and moves the screen to
fit the textcursor. This makes cursor navigation pretty unpredictable
and makes cross-window middle-button paste impossible.
Is it possible *not* to fitCursor with such a update?
Sure, just replace update() with updateMetrics(false) in the resize method.
Abdel.