From ea2caee3ad92c3c2f13ec392f751c12e1d02f4bd Mon Sep 17 00:00:00 2001 From: Techatrix <19954306+Techatrix@users.noreply.github.com> Date: Mon, 21 Nov 2022 19:21:24 +0100 Subject: [PATCH] correctly find last full text change in applyTextEdits (#772) --- src/diff.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/diff.zig b/src/diff.zig index f0918bd..0d1f5ac 100644 --- a/src/diff.zig +++ b/src/diff.zig @@ -366,6 +366,7 @@ pub fn applyTextEdits( i -= 1; if (content_changes[i].range == null) { last_full_text_change = i; + continue; } }