From 58eb7cf3a53ff62bc63c302b6a8712c18428ee43 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Tue, 1 Oct 2019 16:10:25 -0700 Subject: [PATCH] fixed word complete rewrite bug --- custom/4coder_search.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom/4coder_search.cpp b/custom/4coder_search.cpp index 4c8d1361..07d5f1ca 100644 --- a/custom/4coder_search.cpp +++ b/custom/4coder_search.cpp @@ -388,7 +388,9 @@ CUSTOM_DOC("Iteratively tries completing the word to the left of the cursor with if (*rewrite != Rewrite_WordComplete){ first_completion = true; } - *rewrite = Rewrite_WordComplete; + + Rewrite_Type *next_rewrite = scope_attachment(app, scope, view_next_rewrite_loc, Rewrite_Type); + *next_rewrite = Rewrite_WordComplete; local_persist Arena *completion_arena = {}; if (completion_arena == 0){