[BACK]Return to vi.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/vi.c between version 1.16 and 1.17

version 1.16, 2003/03/10 11:09:25 version 1.17, 2003/06/04 20:14:05
Line 612  protected el_action_t
Line 612  protected el_action_t
 vi_list_or_eof(EditLine *el, int c)  vi_list_or_eof(EditLine *el, int c)
 {  {
   
 #ifdef notyet          if (el->el_line.cursor == el->el_line.lastchar) {
         if (el->el_line.cursor == el->el_line.lastchar &&                  if (el->el_line.cursor == el->el_line.buffer) {
             el->el_line.cursor == el->el_line.buffer) {                          term_overwrite(el, STReof, 4);  /* then do a EOF */
 #endif                          term__flush();
                 term_overwrite(el, STReof, 4);  /* then do a EOF */                          return (CC_EOF);
                 term__flush();                  } else {
                 return (CC_EOF);                          /*
 #ifdef notyet                           * Here we could list completions, but it is an
                            * error right now
                            */
                           term_beep(el);
                           return (CC_ERROR);
                   }
         } else {          } else {
   #ifdef notyet
                 re_goto_bottom(el);                  re_goto_bottom(el);
                 *el->el_line.lastchar = '\0';   /* just in case */                  *el->el_line.lastchar = '\0';   /* just in case */
                 return (CC_LIST_CHOICES);                  return (CC_LIST_CHOICES);
         }  #else
                   /*
                    * Just complain for now.
                    */
                   term_beep(el);
                   return (CC_ERROR);
 #endif  #endif
           }
 }  }
   
   

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

CVSweb <webmaster@jp.NetBSD.org>