From e8a775f131d7d22070357eba728366fdd05f19bb Mon Sep 17 00:00:00 2001 From: lum Date: Fri, 9 Oct 2015 07:27:56 +0000 Subject: [PATCH] Fix line number bug when calling onlywind(). --- usr.bin/mg/window.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr.bin/mg/window.c b/usr.bin/mg/window.c index d34511ec54a..7e84c5ed679 100644 --- a/usr.bin/mg/window.c +++ b/usr.bin/mg/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.33 2015/03/25 20:53:31 bcallah Exp $ */ +/* $OpenBSD: window.c,v 1.34 2015/10/09 07:27:56 lum Exp $ */ /* This file is in the public domain. */ @@ -167,6 +167,8 @@ onlywind(int f, int n) wp->w_bufp->b_doto = wp->w_doto; wp->w_bufp->b_markp = wp->w_markp; wp->w_bufp->b_marko = wp->w_marko; + wp->w_bufp->b_dotline = wp->w_dotline; + wp->w_bufp->b_markline = wp->w_markline; } free(wp); } @@ -178,6 +180,8 @@ onlywind(int f, int n) wp->w_bufp->b_doto = wp->w_doto; wp->w_bufp->b_markp = wp->w_markp; wp->w_bufp->b_marko = wp->w_marko; + wp->w_bufp->b_dotline = wp->w_dotline; + wp->w_bufp->b_markline = wp->w_markline; } free(wp); } -- 2.20.1