patch 9.1.1471: completion: inconsistent ordering with CTRL-P
Problem: completion: inconsistent ordering with CTRL-P
(zeertzjq)
Solution: reset compl_curr_match when using CTRL-P (Girish Palya)
fixes: #17425
closes: #17434
Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/edit.c b/src/edit.c
index 9cc55ef..97e4224 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -693,7 +693,7 @@
&& stop_arrow() == OK)
{
ins_compl_delete();
- ins_compl_insert(FALSE, FALSE);
+ ins_compl_insert(FALSE);
}
// Delete preinserted text when typing special chars
else if (IS_WHITE_NL_OR_NUL(c) && ins_compl_preinsert_effect())