diff options
Diffstat (limited to 'usr.bin/mg')
-rw-r--r-- | usr.bin/mg/basic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mg/basic.c b/usr.bin/mg/basic.c index c6e5abc5fbe..48969cdf7e5 100644 --- a/usr.bin/mg/basic.c +++ b/usr.bin/mg/basic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: basic.c,v 1.35 2012/06/08 05:10:50 lum Exp $ */ +/* $OpenBSD: basic.c,v 1.36 2012/06/08 21:21:57 lum Exp $ */ /* This file is in the public domain */ @@ -334,6 +334,8 @@ backpage(int f, int n) /* Move the dot the slow way, for line nos */ while (curwp->w_dotp != lp2) { + if (curwp->w_dotline <= curwp->w_ntrows) + return (TRUE); curwp->w_dotp = lback(curwp->w_dotp); curwp->w_dotline--; } |