From 874d317334fae1ddce316f9b6f4d0ce4e434bf52 Mon Sep 17 00:00:00 2001 From: Thomas Ulmer Date: Tue, 23 Jun 2026 21:34:41 -0700 Subject: heirloom vi fixes from arch AUR --- ex_vwind.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ex_vwind.c') diff --git a/ex_vwind.c b/ex_vwind.c index 751c991..ed6f781 100644 --- a/ex_vwind.c +++ b/ex_vwind.c @@ -453,7 +453,7 @@ vrollR(register int cnt) /* * Go into cooked mode (allow interrupts) during * a scroll if we are at less than 1200 baud and not - * a 'vi' command, of if we are in a 'vi' command and the + * a 'vi' command, or if we are in a 'vi' command and the * scroll is more than 2 full screens. * * BUG: An interrupt during a scroll in this way @@ -463,7 +463,7 @@ int vcookit(register int cnt) { - return (cnt > 1 && (ospeed < B1200 && !initev || cnt > TLINES * 2)); + return (cnt > 1 && ((ospeed < B1200 && !initev) || cnt > TLINES * 2)); } /* -- cgit v1.2.3