summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2006-11-18 19:27:28 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2006-11-18 19:27:28 +0000
commitf8dfe91157b0f78fd86dca31a0911d76084832f0 (patch)
treec625234a16f323aac6e11e3262ac66a927406688 /usr.bin
parent58585d4bef550803848f9e6479a5e57c5c0c05cf (diff)
Fix line number bug (actually, dot-mark bug). to reproduce:
-split window into two -open a file, set the mark -switch windows, open same file, exchange point-and-mark from peter de wachter (Debian bug#391827)
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mg/buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mg/buffer.c b/usr.bin/mg/buffer.c
index 1bb99367dd0..6ac376181c2 100644
--- a/usr.bin/mg/buffer.c
+++ b/usr.bin/mg/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.63 2006/07/25 08:27:09 kjell Exp $ */
+/* $OpenBSD: buffer.c,v 1.64 2006/11/18 19:27:27 kjell Exp $ */
/* This file is in the public domain. */
@@ -615,6 +615,7 @@ showbuffer(struct buffer *bp, struct mgwin *wp, int flags)
wp->w_markp = owp->w_markp;
wp->w_marko = owp->w_marko;
wp->w_dotline = owp->w_dotline;
+ wp->w_markline = owp->w_markline;
break;
}
wp->w_flag |= WFMODE | flags;