[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.14 and 1.15

version 1.14, 2014/04/26 05:58:43 version 1.15, 2014/04/29 12:11:25
Line 54 
Line 54 
 extern int shift_count;  extern int shift_count;
 extern int oldbot;  extern int oldbot;
 extern int forw_prompt;  extern int forw_prompt;
 extern int be_helpful;  
 extern int less_is_more;  extern int less_is_more;
   
 #if SHELL_ESCAPE  #if SHELL_ESCAPE
Line 70 
Line 69 
 static int optgetname;  static int optgetname;
 static POSITION bottompos;  static POSITION bottompos;
 static int save_hshift;  static int save_hshift;
 static char *help_prompt;  
 #if PIPEC  #if PIPEC
 static char pipec;  static char pipec;
 #endif  #endif
Line 750 
Line 748 
                 clear_bot();                  clear_bot();
         clear_cmd();          clear_cmd();
         forw_prompt = 0;          forw_prompt = 0;
         p = help_prompt ? help_prompt : pr_string();          p = pr_string();
         if (is_filtering())          if (is_filtering())
                 putstr("& ");                  putstr("& ");
         if (p == NULL || *p == '\0')          if (p == NULL || *p == '\0')
Line 759 
Line 757 
         {          {
                 at_enter(AT_STANDOUT);                  at_enter(AT_STANDOUT);
                 putstr(p);                  putstr(p);
                 if (be_helpful && !help_prompt && strlen(p) + 40 < sc_width)  
                         putstr(" [Press space to continue, 'q' to quit.]");  
                 at_exit();                  at_exit();
         }          }
         help_prompt = NULL;  
         clear_eol();          clear_eol();
 }  }
   
Line 1812 
Line 1807 
                         break;                          break;
   
                 default:                  default:
                         if (be_helpful)                          bell();
                                 help_prompt = "[Press 'h' for instructions.]";  
                         else  
                                 bell();  
                         break;                          break;
                 }                  }
         }          }

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15