patch 9.1.0634: Ctrl-P not working by default
Problem: Ctrl-P not working by default
(Jesse Pavel, after v9.1.0598)
Solution: Revert part of v9.1.0598 and set cur_match_pos
correctly according to compl_dir_forward()
fixes: #15370
closes: #15379
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/insexpand.c b/src/insexpand.c
index 00a7b75..3a16884 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -4012,11 +4012,8 @@
st.ins_buf = curbuf; // In case the buffer was wiped out.
compl_old_match = compl_curr_match; // remember the last current match
- if (in_fuzzy)
- st.cur_match_pos = (compl_dir_forward())
+ st.cur_match_pos = (compl_dir_forward())
? &st.last_match_pos : &st.first_match_pos;
- else
- st.cur_match_pos = &st.last_match_pos;
// For ^N/^P loop over all the flags/windows/buffers in 'complete'.
for (;;)