Changeset e8074ed


Ignore:
Timestamp:
Nov 28, 2009, 3:38:40 PM (15 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, release-1.10, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
2c48db8
Parents:
dab89e28
git-author:
Alejandro R. Sedeño <asedeno@mit.edu> (11/28/09 15:30:01)
git-committer:
Alejandro R. Sedeño <asedeno@mit.edu> (11/28/09 15:38:40)
Message:
Add another case for reframing to owl_editwin_redisplay

Fixes: #99 (again)

Reframe if index == topindex and topindex is not at the start of a line.

Signed-off-by: Alejandro R. Sedeño <asedeno@mit.edu>
Reviewed-By: Karl Ramm <kcr@1ts.org>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    rf9d257b re8074ed  
    526526  do {
    527527    werase(e->curswin);
    528 
    529     if (e->topindex == -1 || e->index < e->topindex)
     528    if (e->topindex == -1 || e->index < e->topindex
     529        || (e->index == e->topindex
     530            && e->topindex > 0
     531            && e->buff[e->topindex-1] != '\n'))
    530532      oe_reframe(e);
    531533
Note: See TracChangeset for help on using the changeset viewer.