diff options
author | Peter Valchev <pvalchev@cvs.openbsd.org> | 2005-01-08 05:22:26 +0000 |
---|---|---|
committer | Peter Valchev <pvalchev@cvs.openbsd.org> | 2005-01-08 05:22:26 +0000 |
commit | 9d4e7136b55e386dc10fdbb5b98970754ad2c4da (patch) | |
tree | 36e83676b80112d1a655a81817cafe5b2e349a10 /usr.bin/vi | |
parent | 0b2faf69c65283a27ab8f85b36339fff3ebbb9c8 (diff) |
Fix for FreeBSD PR#12801 from Sven Verdoolaege (nvi maintainer) via FreeBSD
(an infinite loop at certain case when options "comment" and "leftright"
are used)
Diffstat (limited to 'usr.bin/vi')
-rw-r--r-- | usr.bin/vi/vi/vi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/vi/vi/vi.c b/usr.bin/vi/vi/vi.c index 7fe4483d7c5..ebf121ec4e8 100644 --- a/usr.bin/vi/vi/vi.c +++ b/usr.bin/vi/vi/vi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vi.c,v 1.9 2002/02/16 21:27:58 millert Exp $ */ +/* $OpenBSD: vi.c,v 1.10 2005/01/08 05:22:25 pvalchev Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 @@ -986,6 +986,7 @@ v_init(sp) * line in the middle, otherwise, it won't work and we'll end up with * the line at the top. */ + F_CLR(sp, SC_SCR_TOP); F_SET(sp, SC_SCR_REFORMAT | SC_SCR_CENTER); /* Invalidate the cursor. */ |