mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-29 06:01:16 -03:00
cursor_selection_mode=inclusive means the commandline position is bounded by the last character. Fix a loop that fails to account for this. Fixesd51f669647(Vi mode: avoid placing cursor beyond last character, 2024-02-14). This change looks very odd because if the commandline is like echo foo. it makes us try to uppercase the trailing period even though that's not part of word range. Hopefully this is harmless. Note that there seem to be more issues remaining, for example Vi-mode paste leaves the cursor in an out-of-bounds odd position. Fixes #10952 Closes #10953 Reported-by: Lzu Tao <taolzu@gmail.com> (cherry picked from commit69f0d960cf)