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

Diff for /src/usr.bin/vim/Attic/cmdline.c between version 1.2 and 1.3

version 1.2, 1996/09/21 06:22:54 version 1.3, 1996/09/21 23:23:28
Line 4727 
Line 4727 
                                                 lnum = fp->lnum;                                                  lnum = fp->lnum;
                                                 break;                                                  break;
   
                           case '{':
                           case '}':
                                                   c = *cmd++;
                                                   pos = curwin->w_cursor;
                                                   curwin->w_cursor.col = -1;
                                                   if(findpar((c=='}')?FORWARD:BACKWARD, 1, NUL, FALSE))
                                                           lnum = curwin->w_cursor.lnum;
                                                   curwin->w_cursor = pos;
                                                   break;
   
                         case '/':                          case '/':
                         case '?':                                               /* '/' or '?' - search */                          case '?':                                               /* '/' or '?' - search */
                                                 c = *cmd++;                                                  c = *cmd++;
Line 4925 
Line 4935 
          * not be expanded between /'s and ?'s or after "'". -- webb           * not be expanded between /'s and ?'s or after "'". -- webb
          */           */
         while (*cmd != NUL && (vim_isspace(*cmd) || isdigit(*cmd) ||          while (*cmd != NUL && (vim_isspace(*cmd) || isdigit(*cmd) ||
                                                         vim_strchr((char_u *)".$%'/?-+,;", *cmd) != NULL))                                                          vim_strchr((char_u *)".$%'/?-+,;{}", *cmd) != NULL))
         {          {
                 if (*cmd == '\'')                  if (*cmd == '\'')
                 {                  {
Line 5125 
Line 5135 
                 /*                  /*
                  * Allow spaces within back-quotes to count as part of the argument                   * Allow spaces within back-quotes to count as part of the argument
                  * being expanded.                   * being expanded.
                    * Never accept '<' or '>' inside a file name.
                  */                   */
                 expand_pattern = skipwhite(arg);                  expand_pattern = skipwhite(arg);
                 for (p = expand_pattern; *p; ++p)                  for (p = expand_pattern; *p; ++p)
                 {                  {
                         if (*p == '\\' && p[1])                          if (*p == '\\' && p[1])
                                 ++p;                                  ++p;
                           else if ((vim_iswhite(*p)
 #ifdef SPACE_IN_FILENAME  #ifdef SPACE_IN_FILENAME
                         else if (vim_iswhite(*p) && (!(argt & NOSPC) || usefilter))                                          && (!(argt & NOSPC) || usefilter)
 #else  
                         else if (vim_iswhite(*p))  
 #endif  #endif
                                            ) || *p == '<' || *p == '>')
                         {                          {
                                 p = skipwhite(p);                                  if (p[1] == '&')                /* skip ">&" */
                                           ++p;
                                   if (p[1] == '!')                /* skip ">&!" */
                                           ++p;
                                 if (in_quote)                                  if (in_quote)
                                         bow = p;                                          bow = p + 1;
                                 else                                  else
                                         expand_pattern = p;                                          expand_pattern = p + 1;
                                 --p;  
                         }                          }
                         else if (*p == '`')                          else if (*p == '`')
                         {                          {

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