From 9ad01c03fd4648b7d3338c499458b35ac696fec0 Mon Sep 17 00:00:00 2001 From: Daneel Date: Wed, 4 Mar 2026 13:32:24 +0100 Subject: [PATCH] patches: re-fix B6 nlines < 128 -> 512 (lost in revert) Fix was accidentally reverted when reverting the broken B5 goto fix. Both line_starts[512]/line_ends[512] arrays and the main while loop guard use 512; the trailing-line check must also use 512 to avoid silently dropping the last line in buffers with 128-511 lines. --- ...8-ns-announce-child-frame-completion-candidates-for-Vo.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch b/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch index babbcab..436063b 100644 --- a/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch +++ b/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch @@ -269,7 +269,7 @@ index c9fe93a57b..f7574efb39 100644 + byte_pos++; + char_pos++; + } -+ if (char_pos > lstart && nlines < 128) ++ if (char_pos > lstart && nlines < 512) + { + line_starts[nlines] = lstart; + line_ends[nlines] = char_pos;