diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2008-03-21 08:01:21 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2008-03-21 08:01:21 +0000 |
commit | 78097a4aa1e1b2da48f871664c79f9d1aef8009e (patch) | |
tree | d652950dc61a02cdeafd5066d151e5b841552e1e | |
parent | a4c91aef6055a24d911485b53dc5fcee0b1d377b (diff) |
Reset startrow when opening multiple files. Spotted by matthieu@
ok, kjell@, matthieu@
-rw-r--r-- | usr.bin/mg/file.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/mg/file.c b/usr.bin/mg/file.c index 70fb05ff448..af1361e1a4e 100644 --- a/usr.bin/mg/file.c +++ b/usr.bin/mg/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.64 2006/12/24 01:20:53 kjell Exp $ */ +/* $OpenBSD: file.c,v 1.65 2008/03/21 08:01:20 pyr Exp $ */ /* This file is in the public domain. */ @@ -248,8 +248,10 @@ readin(char *fname) if (ro == TRUE) curbp->b_flag |= BFREADONLY; - if (startrow) + if (startrow) { gotoline(FFARG, startrow); + startrow = 0; + } undo_add_modified(); return (status); |