diff options
Diffstat (limited to 'usr.bin/mg/util.c')
-rw-r--r-- | usr.bin/mg/util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/mg/util.c b/usr.bin/mg/util.c index d5b5a06af14..64e9d7659e4 100644 --- a/usr.bin/mg/util.c +++ b/usr.bin/mg/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.36 2015/09/29 03:19:24 guenther Exp $ */ +/* $OpenBSD: util.c,v 1.37 2015/10/10 09:13:14 lum Exp $ */ /* This file is in the public domain. */ @@ -117,6 +117,9 @@ twiddle(int f, int n) struct line *dotp; int doto, cr; + if (n == 0) + return (TRUE); + dotp = curwp->w_dotp; doto = curwp->w_doto; |