[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.33 and 1.34

version 1.33, 2021/10/09 15:27:18 version 1.34, 2024/04/14 18:11:54
Line 35 
Line 35 
 extern int show_attn;  extern int show_attn;
 extern off_t highest_hilite;  extern off_t highest_hilite;
 extern char *every_first_cmd;  extern char *every_first_cmd;
 extern char *curr_altfilename;  
 extern char version[];  extern char version[];
 extern struct scrpos initial_scrpos;  extern struct scrpos initial_scrpos;
 extern IFILE curr_ifile;  extern IFILE curr_ifile;
Line 1411 
Line 1410 
                         if (strcmp(get_filename(curr_ifile), "-") == 0) {                          if (strcmp(get_filename(curr_ifile), "-") == 0) {
                                 error("Cannot edit standard input", NULL);                                  error("Cannot edit standard input", NULL);
                                 break;                                  break;
                         }  
                         if (curr_altfilename != NULL) {  
                                 error("WARNING: This file was viewed via "  
                                     "LESSOPEN", NULL);  
                         }                          }
                         /*                          /*
                          * Expand the editor prototype string                           * Expand the editor prototype string

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