Changeset 460fbe8


Ignore:
Timestamp:
Dec 30, 2009, 1:59:48 PM (10 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
88f0dae, d41f773
Parents:
43fe02f
git-author:
Nelson Elhage <nelhage@mit.edu> (12/30/09 02:10:18)
git-committer:
Nelson Elhage <nelhage@mit.edu> (12/30/09 13:59:48)
Message:
editwin: Prefer the point a line below center when reframing.

This results in much better behavior for typwinsize <= 3. With two or
three lines, it is now possible to get the locktext back by
recentering on the first line, and with one line, it causes the
visible line to be the line being edited, rather than the next line.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    r43fe02f r460fbe8  
    471471static void oe_reframe(owl_editwin *e) {
    472472  oe_excursion x;
    473   int goal = e->winlines / 2;
     473  int goal = 1 + e->winlines / 2;
    474474  int index;
    475475  int count = 0;
Note: See TracChangeset for help on using the changeset viewer.