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

Diff for /src/usr.bin/less/command.c between version 1.32 and 1.33

version 1.32, 2019/09/03 23:08:42 version 1.33, 2021/10/09 15:27:18
Line 264 
Line 264 
 static int  static int
 mca_opt_first_char(int c)  mca_opt_first_char(int c)
 {  {
           int no_prompt = (optflag & OPT_NO_PROMPT);
         int flag = (optflag & ~OPT_NO_PROMPT);          int flag = (optflag & ~OPT_NO_PROMPT);
         if (flag == OPT_NO_TOGGLE) {          if (flag == OPT_NO_TOGGLE) {
                 switch (c) {                  switch (c) {
Line 277 
Line 278 
                 switch (c) {                  switch (c) {
                 case '+':                  case '+':
                         /* "-+" = UNSET. */                          /* "-+" = UNSET. */
                         optflag = (flag == OPT_UNSET) ? OPT_TOGGLE : OPT_UNSET;                          optflag = no_prompt |
                               ((flag == OPT_UNSET) ? OPT_TOGGLE : OPT_UNSET);
                         mca_opt_toggle();                          mca_opt_toggle();
                         return (MCA_MORE);                          return (MCA_MORE);
                 case '!':                  case '!':
                         /* "-!" = SET */                          /* "-!" = SET */
                         optflag = (flag == OPT_SET) ? OPT_TOGGLE : OPT_SET;                          optflag = no_prompt |
                               ((flag == OPT_SET) ? OPT_TOGGLE : OPT_SET);
                         mca_opt_toggle();                          mca_opt_toggle();
                         return (MCA_MORE);                          return (MCA_MORE);
                 case CONTROL('P'):                  case CONTROL('P'):

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33