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

Diff for /src/usr.bin/less/edit.c between version 1.4 and 1.5

version 1.4, 2003/04/13 18:26:25 version 1.5, 2003/04/14 14:33:57
Line 237 
Line 237 
         {          {
                 chflags = ch_getflags();                  chflags = ch_getflags();
                 close_file();                  close_file();
                 if ((chflags & CH_HELPFILE) && held_ifile(was_curr_ifile) <= 1)  
                 {  
                         /*  
                          * Don't keep the help file in the ifile list.  
                          */  
                         del_ifile(was_curr_ifile);  
                         was_curr_ifile = old_ifile;  
                 }  
         }          }
   
         if (ifile == NULL_IFILE)          if (ifile == NULL_IFILE)
Line 299 
Line 291 
                  */                   */
                 __djgpp_set_ctrl_c(1);                  __djgpp_set_ctrl_c(1);
 #endif  #endif
         } else if (strcmp(open_filename, FAKE_HELPFILE) == 0)  
         {  
                 f = -1;  
                 chflags |= CH_HELPFILE;  
         } else if ((parg.p_string = bad_file(open_filename)) != NULL)          } else if ((parg.p_string = bad_file(open_filename)) != NULL)
         {          {
                 /*                  /*
Line 371 
Line 359 
         new_file = TRUE;          new_file = TRUE;
         ch_init(f, chflags);          ch_init(f, chflags);
   
         if (!(chflags & CH_HELPFILE))  
         {  
 #if LOGFILE  #if LOGFILE
                 if (namelogfile != NULL && is_tty)          if (namelogfile != NULL && is_tty)
                         use_logfile(namelogfile);                  use_logfile(namelogfile);
 #endif  #endif
                 if (every_first_cmd != NULL)          if (every_first_cmd != NULL)
                         ungetsc(every_first_cmd);                  ungetsc(every_first_cmd);
         }  
   
         no_display = !any_display;          no_display = !any_display;
         flush();          flush();

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5