=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/basic.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -r1.38 -r1.39 --- src/usr.bin/mg/basic.c 2012/10/12 21:13:46 1.38 +++ src/usr.bin/mg/basic.c 2013/03/25 11:41:44 1.39 @@ -1,4 +1,4 @@ -/* $OpenBSD: basic.c,v 1.38 2012/10/12 21:13:46 jasper Exp $ */ +/* $OpenBSD: basic.c,v 1.39 2013/03/25 11:41:44 florian Exp $ */ /* This file is in the public domain */ @@ -219,7 +219,7 @@ void setgoal(void) { - curgoal = getcolpos(); /* Get the position. */ + curgoal = getcolpos(curwp); /* Get the position. */ /* we can now display past end of display, don't chop! */ }