[BACK]Return to edit.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / vim

Diff for /src/usr.bin/vim/Attic/edit.c between version 1.3 and 1.4

version 1.3, 1996/09/21 23:12:32 version 1.4, 1996/10/14 03:55:10
Line 304 
Line 304 
                 emsg_on_display = FALSE;                /* may remove error message now */                  emsg_on_display = FALSE;                /* may remove error message now */
   
                 c = vgetc();                  c = vgetc();
                 if (c == Ctrl('C'))  
                   /*
                    * Ignore got_int when CTRL-C was typed here.
                    * Don't ignore it in :global, we really need to break then.
                    */
                   if (c == Ctrl('C') && !global_busy)
                         got_int = FALSE;                          got_int = FALSE;
   
 #ifdef RIGHTLEFT  #ifdef RIGHTLEFT
Line 1567 
Line 1572 
                                                                                 (p_ws || done_dir == BOTH_DIRECTIONS))                                                                                  (p_ws || done_dir == BOTH_DIRECTIONS))
                                 {                                  {
                                         edit_submode_extra = e_patnotf;                                          edit_submode_extra = e_patnotf;
                                         edit_submode_highl = TRUE;                                          edit_submode_highl = 'e';
                                 }                                  }
                                 else if (curr_match != NULL && complete_direction == FORWARD &&                                  else if (curr_match != NULL && complete_direction == FORWARD &&
                                                                                         curr_match->next != NULL)                                                                                          curr_match->next != NULL)
Line 1657 
Line 1662 
                                         else if (tot == 0)                                          else if (tot == 0)
                                         {                                          {
                                                 edit_submode_extra = e_patnotf;                                                  edit_submode_extra = e_patnotf;
                                                 edit_submode_highl = TRUE;                                                  edit_submode_highl = 'e';
                                         }                                          }
                                 }                                  }
   
                                 /* eat the ESC to avoid leaving insert mode */                                  /* eat the ESC to avoid leaving insert mode */
                                 if (got_int)                                  if (got_int && !global_busy)
                                 {                                  {
                                         (void)vgetc();                                          (void)vgetc();
                                         got_int = FALSE;                                          got_int = FALSE;
Line 1681 
Line 1686 
                                         if (curr_match == NULL || curr_match->original)                                          if (curr_match == NULL || curr_match->original)
                                         {                                          {
                                                 edit_submode_extra = (char_u *)"Back at original";                                                  edit_submode_extra = (char_u *)"Back at original";
                                                 edit_submode_highl = TRUE;                                                  edit_submode_highl = 'w';
                                         }                                          }
                                         else if (first_match != NULL &&                                          else if (first_match != NULL &&
                                                         first_match->next != NULL &&                                                          first_match->next != NULL &&
Line 1689 
Line 1694 
                                                          first_match->next->original))                                                           first_match->next->original))
                                         {                                          {
                                                 edit_submode_extra = (char_u *)"(the only match)";                                                  edit_submode_extra = (char_u *)"(the only match)";
                                                 edit_submode_highl = FALSE;                                                  edit_submode_highl = NUL;
                                         }                                          }
                                 }                                  }
   
Line 2754 
Line 2759 
         /*          /*
          * If there's any pending input, grab up to INPUT_BUFLEN at once.           * If there's any pending input, grab up to INPUT_BUFLEN at once.
          * This speeds up normal text input considerably.           * This speeds up normal text input considerably.
            * Don't do this when 'cindent' is set, because we might need to re-indent
            * at a ':', or any other character.
          */           */
 #define INPUT_BUFLEN 100  #define INPUT_BUFLEN 100
         if (!ISSPECIAL(c) && vpeekc() != NUL && State != REPLACE          if (!ISSPECIAL(c) && vpeekc() != NUL && State != REPLACE
   #ifdef CINDENT
                                                                                           && !curbuf->b_p_cin
   #endif
 #ifdef RIGHTLEFT  #ifdef RIGHTLEFT
                                                                                                                                 && !p_ri                                                                                          && !p_ri
 #endif  #endif
                                                                                                                                                 )                                                                                                                                                  )
         {          {

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4