Comment #1 on issue 304 by reiner.p...@gmail.com: Entering the command-mode moves the window (in Pango)
http://code.google.com/p/yi-editor/issues/detail?id=304

I've attached a patch which fixes this.

The problem was as follows. Before this patch, tabs were simply represented as (PointedList Window), and had no id key (unlike windows and buffers). This means that, when window focus is changed, the pango UI interpreted the result as a *completely new* tab, and reconstructed all the UI elements from scratch. In particular, the drawing window was reconstructed and given size 1x1. In order to keep the cursor visible in this 1x1 screen, the window was forced to scroll.

The solution is straightforward: add a genuine Tabs datatype, which includes an id key for the tab. The pango UI now uses this id key for synchronisation. The change also saves some redundant reconstruction of UI elements, for the above reasons.

Attachments:
        fix304.patch  11.6 KB

--
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel

Reply via email to