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

Diff for /src/usr.bin/mg/window.c between version 1.32 and 1.33

version 1.32, 2015/03/19 21:22:15 version 1.33, 2015/03/25 20:53:31
Line 40 
Line 40 
  * Reposition dot in the current window to line "n".  If the argument is   * Reposition dot in the current window to line "n".  If the argument is
  * positive, it is that line.  If it is negative it is that line from the   * positive, it is that line.  If it is negative it is that line from the
  * bottom.  If it is 0 the window is centered (this is what the standard   * bottom.  If it is 0 the window is centered (this is what the standard
  * redisplay code does).  If GOSREC is undefined, default is 0, so it acts   * redisplay code does).
  * like GNU.  If GOSREC is defined, with no argument it defaults to 1 and  
  * works like in Gosling.  
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 reposition(int f, int n)  reposition(int f, int n)
 {  {
 #ifndef GOSREC  
         curwp->w_frame = (f & FFARG) ? (n >= 0 ? n + 1 : n) : 0;          curwp->w_frame = (f & FFARG) ? (n >= 0 ? n + 1 : n) : 0;
 #else /* !GOSREC */  
         curwp->w_frame = n;  
 #endif /* !GOSREC */  
         curwp->w_rflag |= WFFRAME;          curwp->w_rflag |= WFFRAME;
         sgarbf = TRUE;          sgarbf = TRUE;
         return (TRUE);          return (TRUE);

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