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

Diff for /src/usr.bin/mg/file.c between version 1.54 and 1.55

version 1.54, 2006/05/02 17:10:25 version 1.55, 2006/05/28 23:30:16
Line 62 
Line 62 
         if ((bp = findbuffer(adjf)) == NULL)          if ((bp = findbuffer(adjf)) == NULL)
                 return (FALSE);                  return (FALSE);
         curbp = bp;          curbp = bp;
         if (showbuffer(bp, curwp, WFHARD) != TRUE)          if (showbuffer(bp, curwp, WFFULL) != TRUE)
                 return (FALSE);                  return (FALSE);
         if (bp->b_fname[0] == '\0') {          if (bp->b_fname[0] == '\0') {
                 if ((status = readin(adjf)) != TRUE)                  if ((status = readin(adjf)) != TRUE)
Line 105 
Line 105 
         if ((bp = findbuffer(adjf)) == NULL)          if ((bp = findbuffer(adjf)) == NULL)
                 return (FALSE);                  return (FALSE);
         curbp = bp;          curbp = bp;
         if (showbuffer(bp, curwp, WFHARD) != TRUE)          if (showbuffer(bp, curwp, WFFULL) != TRUE)
                 return (FALSE);                  return (FALSE);
         if (bp->b_fname[0] == '\0') {          if (bp->b_fname[0] == '\0') {
                 if ((status = readin(adjf)) != TRUE)                  if ((status = readin(adjf)) != TRUE)
Line 324 
Line 324 
                         return (FALSE);                          return (FALSE);
                 undo_enable(x);                  undo_enable(x);
                 curbp = bp;                  curbp = bp;
                 return (showbuffer(bp, curwp, WFHARD | WFMODE));                  return (showbuffer(bp, curwp, WFFULL | WFMODE));
         } else {          } else {
                 (void)strlcpy(bp->b_cwd, dirname(fname), sizeof(bp->b_cwd));                  (void)strlcpy(bp->b_cwd, dirname(fname), sizeof(bp->b_cwd));
                 (void)strlcat(bp->b_cwd, "/", sizeof(bp->b_cwd));                  (void)strlcat(bp->b_cwd, "/", sizeof(bp->b_cwd));

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55