On Sat, 2009-03-07 at 21:28 +0100, Jean-Philippe Bernardy wrote:

> Could you document the problem with "winh" ?

There's not much to it; this is how it seemed to me: heigt' was the
correct height of the window in pixels, and winh was half of that:

> round (height' / (ascent metrics + descent metrics))

as both the ascent and descent values are 1.0. The indexSolAbove
function seems to expect a line count, and it was being passed half of
winh (winh `div` 2), or one fourth of the pixel height of the window.

So, it seemed to me that there was never a conversion from pixel heights
to line counts. This patch doesn't completely fix the problem, but it
makes the UI at least usable. :)

> We could make the "amount to scroll by" a field in Config. The keymap
> has basically nothing to do with scrolling.

Ah, I agree, actually. That makes more sense.

Jeff Wheeler


--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to