diff options
author | 2012-08-30 06:25:30 +0000 | |
---|---|---|
committer | 2012-08-30 06:25:30 +0000 | |
commit | e46d45ee76185e3689f8263e0b080b70611313e3 (patch) | |
tree | 37f6ec4f07361c9c0de5bc66e160c4ba4b0d1d65 | |
parent | This diff allows the user to decide what to do with buffers that (diff) | |
download | wireguard-openbsd-e46d45ee76185e3689f8263e0b080b70611313e3.tar.xz wireguard-openbsd-e46d45ee76185e3689f8263e0b080b70611313e3.zip |
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.
-rw-r--r-- | usr.bin/mg/buffer.c | 4 |
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 */ |