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

Diff for /src/usr.bin/mg/main.c between version 1.70 and 1.71

version 1.70, 2012/12/28 16:12:50 version 1.71, 2013/05/31 18:03:44
Line 18 
Line 18 
 int              lastflag;                      /* flags, last command  */  int              lastflag;                      /* flags, last command  */
 int              curgoal;                       /* goal column          */  int              curgoal;                       /* goal column          */
 int              startrow;                      /* row to start         */  int              startrow;                      /* row to start         */
   int              doaudiblebell;                 /* audible bell toggle  */
   int              dovisiblebell;                 /* visible bell toggle  */
   int              donebell;                      /* done't wring bell    */
 struct buffer   *curbp;                         /* current buffer       */  struct buffer   *curbp;                         /* current buffer       */
 struct buffer   *bheadp;                        /* BUFFER list head     */  struct buffer   *bheadp;                        /* BUFFER list head     */
 struct mgwin    *curwp;                         /* current window       */  struct mgwin    *curwp;                         /* current window       */
Line 93 
Line 96 
         dirinit();              /* Get current directory.       */          dirinit();              /* Get current directory.       */
         edinit(bp);             /* Buffers, windows.            */          edinit(bp);             /* Buffers, windows.            */
         ttykeymapinit();        /* Symbols, bindings.           */          ttykeymapinit();        /* Symbols, bindings.           */
           bellinit();             /* Audible and visible bell.    */
   
         /*          /*
          * doing update() before reading files causes the error messages from           * doing update() before reading files causes the error messages from
          * the file I/O show up on the screen.  (and also an extra display of           * the file I/O show up on the screen.  (and also an extra display of
          * the mode line if there are files specified on the command line.)           * the mode line if there are files specified on the command line.)
          */           */
         update();          update(CMODE);
   
         /* user startup file. */          /* user startup file. */
         if ((cp = startupfile(NULL)) != NULL)          if ((cp = startupfile(NULL)) != NULL)
Line 171 
Line 175 
                         do_redraw(0, 0, TRUE);                          do_redraw(0, 0, TRUE);
                         winch_flag = 0;                          winch_flag = 0;
                 }                  }
                 update();                  update(CMODE);
                 lastflag = thisflag;                  lastflag = thisflag;
                 thisflag = 0;                  thisflag = 0;
   
Line 183 
Line 187 
                         /* FALLTHRU */                          /* FALLTHRU */
                 case FALSE:                  case FALSE:
                 default:                  default:
                         ttbeep();                          if (!donebell)
                                   dobeep();
                         macrodef = FALSE;                          macrodef = FALSE;
                 }                  }
                   donebell = 0;
         }          }
 }  }
   

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71