Changeset ab225e0


Ignore:
Timestamp:
Jul 24, 2009, 12:59:23 AM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
41c9a96
Parents:
898eb15
git-author:
Anders Kaseorg <andersk@mit.edu> (07/23/09 23:01:04)
git-committer:
Anders Kaseorg <andersk@mit.edu> (07/24/09 00:59:23)
Message:
Make setsearch be owl_function_search_start(string, OWL_DIRECTION_NONE).

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r898eb15 rab225e0  
    25222522
    25232523  buffstart=skiptokens(buff, 1);
    2524   owl_global_set_search_string(&g, *buffstart ? buffstart : NULL);
    2525   owl_mainwin_redisplay(owl_global_get_mainwin(&g));
     2524  owl_function_search_start(*buffstart ? buffstart : NULL, OWL_DIRECTION_NONE);
    25262525 
    25272526  return(NULL);
  • functions.c

    r898eb15 rab225e0  
    29652965void owl_function_search_start(char *string, int direction)
    29662966{
    2967   /* direction is OWL_DIRECTION_DOWNWARDS or OWL_DIRECTION_UPWARDS */
     2967  /* direction is OWL_DIRECTION_DOWNWARDS or OWL_DIRECTION_UPWARDS or
     2968   * OWL_DIRECTION_NONE */
    29682969  owl_global_set_search_string(&g, string);
    2969   owl_function_search_helper(0, direction);
     2970
     2971  if (direction == OWL_DIRECTION_NONE)
     2972    owl_mainwin_redisplay(owl_global_get_mainwin(&g));
     2973  else
     2974    owl_function_search_helper(0, direction);
    29702975}
    29712976
Note: See TracChangeset for help on using the changeset viewer.