Changeset 4fd211f


Ignore:
Timestamp:
Apr 3, 2011, 4:00:04 PM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
9b7b535, 7655e08, 3fa0181, 9efa5bd
Parents:
6a71113
Message:
Use owl_function_makemsg to report no search matches

It's not really an error; certainly not something that should end up in
the error log.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r1a30f05 r4fd211f  
    29592959 
    29602960  if (viewsize==0) {
    2961     owl_function_error("No messages present");
     2961    owl_function_makemsg("No messages present");
    29622962    return;
    29632963  }
     
    29732973  /* bounds check */
    29742974  if (start>=viewsize || start<0) {
    2975     owl_function_error("No further matches found");
     2975    owl_function_makemsg("No further matches found");
    29762976    return;
    29772977  }
     
    30063006  }
    30073007  owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    3008   owl_function_error("No matches found");
     3008  owl_function_makemsg("No matches found");
    30093009}
    30103010
  • viewwin.c

    r237d02c r4fd211f  
    150150
    151151  if (!owl_viewwin_search(v, owl_global_get_search_re(&g), consider_current, direction))
    152     owl_function_error("No more matches");
     152    owl_function_makemsg("No more matches");
    153153  return NULL;
    154154}
     
    172172  if (!owl_viewwin_search(data->v, owl_global_get_search_re(&g),
    173173                          consider_current, data->direction))
    174     owl_function_error("No matches");
     174    owl_function_makemsg("No matches");
    175175}
    176176
Note: See TracChangeset for help on using the changeset viewer.