Changeset 1583c90 for functions.c


Ignore:
Timestamp:
Sep 19, 2002, 11:28:11 AM (18 years ago)
Author:
James M. Kretchmar <kretch@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:
f9c43ae
Parents:
65fc0900
Message:
Fixed a bug in moving the poiner after an expunge
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r3a2daac r1583c90  
    407407  if (curmsg<0) curmsg=0;
    408408
    409   /* first try to move to an undeleted message in the view*/
     409  /* first try to move to an undeleted message in the view */
    410410  m=owl_view_get_element(v, curmsg);
    411411  if (owl_message_is_delete(m)) {
    412412    /* try to find the next undeleted message */
    413413    j=owl_view_get_size(v);
    414     for (i=curmsg; i<j; i++) {
     414    for (i=curmsg+1; i<j; i++) {
    415415      if (!owl_message_is_delete(owl_view_get_element(v, i))) {
    416416        owl_global_set_curmsg(&g, i);
     
    420420
    421421    /* if we weren't successful try to find one backwards */
     422    curmsg=owl_global_get_curmsg(&g);
    422423    if (owl_message_is_delete(owl_view_get_element(v, curmsg))) {
    423424      for (i=curmsg; i>0; i--) {
Note: See TracChangeset for help on using the changeset viewer.