=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/paragraph.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- src/usr.bin/mg/paragraph.c 2014/03/20 07:47:29 1.30 +++ src/usr.bin/mg/paragraph.c 2014/03/27 09:30:55 1.31 @@ -1,4 +1,4 @@ -/* $OpenBSD: paragraph.c,v 1.30 2014/03/20 07:47:29 lum Exp $ */ +/* $OpenBSD: paragraph.c,v 1.31 2014/03/27 09:30:55 florian Exp $ */ /* This file is in the public domain. */ @@ -33,6 +33,7 @@ return (gotoeop(f, -n)); while (n-- > 0) { + nospace = 0; while (lback(curwp->w_dotp) != curbp->b_headp) { curwp->w_dotp = lback(curwp->w_dotp); curwp->w_dotline--; @@ -49,7 +50,6 @@ } else nospace = 1; } - nospace = 0; } /* force screen update */ curwp->w_rflag |= WFMOVE; @@ -72,6 +72,7 @@ /* for each one asked for */ while (n-- > 0) { + nospace = 0; while (lforw(curwp->w_dotp) != curbp->b_headp) { col = 0; curwp->w_doto = 0; @@ -89,7 +90,6 @@ curwp->w_dotp = lforw(curwp->w_dotp); curwp->w_dotline++; } - nospace = 0; } /* force screen update */ curwp->w_rflag |= WFMOVE;