Changeset f2e36b5 for mainwin.c


Ignore:
Timestamp:
Aug 4, 2002, 6:12:28 PM (18 years ago)
Author:
Erik Nygren <nygren@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
8509c08
Parents:
aa2f33b3
Message:
* Page-down will not skip past the last message if its truncated.
* Added C-t binding for transposing characters.  (from jdaniel)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • mainwin.c

    r1aee7d9 rf2e36b5  
    4141  isfull=0;
    4242  mw->curtruncated=0;
     43  mw->lasttruncated=0;
    4344  j=owl_view_get_size(v);
    4445  for (i=topmsg; i<j; i++) {
     
    7273    /* if we'll fill the screen print a partial message */
    7374    if ((y+lines > recwinlines) && (i==owl_global_get_curmsg(&g))) mw->curtruncated=1;
     75    if (y+lines > recwinlines) mw->lasttruncated=1;
    7476    if (y+lines > recwinlines-1) {
    7577      isfull=1;
     
    130132}
    131133
     134int owl_mainwin_is_last_msg_truncated(owl_mainwin *mw) {
     135  if (mw->lasttruncated) return(1);
     136  return(0);
     137}
     138
    132139int owl_mainwin_get_last_msg(owl_mainwin *mw) {
    133140  /* return the number of the last message displayed. -1 if none */
Note: See TracChangeset for help on using the changeset viewer.