[BACK]Return to readline.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libedit

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libedit/readline.c between version 1.132 and 1.133

version 1.132, 2016/05/09 21:27:55 version 1.133, 2016/05/13 15:55:59
Line 1571  where_history(void)
Line 1571  where_history(void)
                 return 0;                  return 0;
         curr_num = ev.num;          curr_num = ev.num;
   
         (void)history(h, &ev, H_FIRST);          /* start from the oldest */
         off = 1;          (void)history(h, &ev, H_LAST);
         while (ev.num != curr_num && history(h, &ev, H_NEXT) == 0)  
           /* position is zero-based */
           off = 0;
           while (ev.num != curr_num && history(h, &ev, H_PREV) == 0)
                 off++;                  off++;
   
         return off;          return off;

Legend:
Removed from v.1.132  
changed lines
  Added in v.1.133

CVSweb <webmaster@jp.NetBSD.org>