summaryrefslogtreecommitdiff
path: root/ex_vwind.c
diff options
context:
space:
mode:
authorThomas Ulmer <thomasmulmer02@gmail.com>2026-06-23 21:34:41 -0700
committerThomas Ulmer <thomasmulmer02@gmail.com>2026-06-23 21:34:41 -0700
commit874d317334fae1ddce316f9b6f4d0ce4e434bf52 (patch)
tree929f924d3c3696d3aa9917aca0e7048bbe3e93e8 /ex_vwind.c
parent15bd7946cc838a3151c357e4b0bc1ab85eecda62 (diff)
heirloom vi fixes from arch AUR
Diffstat (limited to 'ex_vwind.c')
-rw-r--r--ex_vwind.c4
1 files changed, 2 insertions, 2 deletions
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));
}
/*