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

Diff for /src/usr.bin/less/prompt.c between version 1.20 and 1.21

version 1.20, 2016/01/13 22:47:45 version 1.21, 2016/01/17 00:59:09
Line 174 
Line 174 
   
         switch (c) {          switch (c) {
         case 'a':       /* Anything in the message yet? */          case 'a':       /* Anything in the message yet? */
                 return (mp > message);                  return (*message != '\0');
         case 'b':       /* Current byte offset known? */          case 'b':       /* Current byte offset known? */
                 return (curr_byte(where) != -1);                  return (curr_byte(where) != -1);
         case 'c':          case 'c':
Line 478 
Line 478 
                 }                  }
         }          }
   
         if (mp == message)          if (*message == '\0')
                 return ("");                  return ("");
         if (maxwidth > 0 && mp >= message + maxwidth) {          if (maxwidth > 0 && mp >= message + maxwidth) {
                 /*                  /*

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21