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>
This commit is contained in:
Girish Palya
2025-06-18 19:15:45 +02:00
committed by Christian Brabandt
parent 1c00af2a24
commit 5fbe72edda
5 changed files with 84 additions and 13 deletions

View File

@ -693,7 +693,7 @@ edit(
&& 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())