~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to cmd-line-utils/readline/isearch.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
617
617
     int direction, invoking_key __attribute__((unused));
618
618
{
619
619
  _rl_search_cxt *cxt;          /* local for now, but saved globally */
620
 
  int c, r;
 
620
  int r;
621
621
 
622
622
  RL_SETSTATE(RL_STATE_ISEARCH);
623
623
  cxt = _rl_isearch_init (direction);
632
632
  r = -1;
633
633
  for (;;)
634
634
    {
635
 
      c = _rl_search_getchar (cxt);
 
635
      _rl_search_getchar (cxt);
636
636
      /* We might want to handle EOF here (c == 0) */
637
637
      r = _rl_isearch_dispatch (cxt, cxt->lastc);
638
638
      if (r <= 0)
655
655
_rl_isearch_callback (cxt)
656
656
     _rl_search_cxt *cxt;
657
657
{
658
 
  int c, r;
 
658
  int r;
659
659
 
660
 
  c = _rl_search_getchar (cxt);
 
660
  _rl_search_getchar (cxt);
661
661
  /* We might want to handle EOF here */
662
662
  r = _rl_isearch_dispatch (cxt, cxt->lastc);
663
663