summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorlum <lum@cvs.openbsd.org>2012-08-30 06:25:31 +0000
committerlum <lum@cvs.openbsd.org>2012-08-30 06:25:31 +0000
commit0c1a6fa458a4e93337ea766978d6b94d20857be6 (patch)
treef889b1e868ddb67faee5f0c807fcab58e34f445f /usr.bin
parentcfd1d823758096ab3dfa6f4e8a34375b6a5f69a9 (diff)
Some line counter goodness from Florian Obser.
If you open an already open buffer via C-x C-f, odd things can happen with the cursor and line counter for that buffer. This diff stops that behaviour and no regressions viewable.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mg/buffer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/mg/buffer.c b/usr.bin/mg/buffer.c
index 1be619b1dd2..c6c1a53b170 100644
--- a/usr.bin/mg/buffer.c
+++ b/usr.bin/mg/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.79 2012/08/30 06:09:12 lum Exp $ */
+/* $OpenBSD: buffer.c,v 1.80 2012/08/30 06:25:30 lum Exp $ */
/* This file is in the public domain. */
@@ -614,8 +614,6 @@ showbuffer(struct buffer *bp, struct mgwin *wp, int flags)
if (wp->w_bufp == bp) { /* Easy case! */
wp->w_rflag |= flags;
- wp->w_dotp = bp->b_dotp;
- wp->w_doto = bp->b_doto;
return (TRUE);
}
/* First, detach the old buffer from the window */