try_apply_edit_to_autosuggestion: update icase matched codepoint counter

This function mutates the autosuggestion's search_string_range without
updating the number of matched codepoints accordingly, fix that.
Fixes 78f4541116 (reader: fix try_apply_edit_to_autosuggestion false
positive, 2026-01-22).

Fixes #12377
This commit is contained in:
Johannes Altmanninger
2026-01-26 01:29:24 +11:00
parent eda1694581
commit 6a2f531f9b
2 changed files with 27 additions and 11 deletions

View File

@@ -59,3 +59,11 @@ isolated-tmux send-keys n
tmux-sleep
isolated-tmux capture-pane -p
# CHECK: prompt {{\d+}}> echo in
touch some-file
isolated-tmux send-keys C-u C-l ': some-'
tmux-sleep
isolated-tmux send-keys f Tab
tmux-sleep
isolated-tmux capture-pane -p
# CHECK: prompt {{\d+}}> : some-file