fish-shell/tests
Johannes Altmanninger d823444c6e Apply autosuggestions from completions also if cursor is not at EOL
Before 1c4e5cadf2 (Autosuggestions in multi-line command lines,
2024-12-15), the completion code path in the autosuggestion performer
used to do something weird: it used to request completions for the
entire command line (with the implied cursor at end) but try to apply
the same completion at the actual cursor.

That commit changed this to request completions only up to the cursor
position, which could in theory make us produce valid completions even
if the cursor is not at end of the line.  However, that doesn't really
work since autosuggestions can only be rendered at the end of the line.
And the worst of it, that commit tries to compute

	line_at_cursor(&full_line, search_string_range.end)

which crashes as out-of-bounds if the completion needs to replace the token
(like a case-correcting completion does).

Let's apply completions to the end, matching how autosuggestions work
in general.
2025-01-03 12:56:04 +01:00
..
checks Apply autosuggestions from completions also if cursor is not at EOL 2025-01-03 12:56:04 +01:00
pexpects Make tests usable with path with spaces 2025-01-01 16:45:43 +01:00
test_functions Fix tmux-multiline-prompt test with EDITOR=vim 2024-10-27 05:03:30 +01:00
.gitignore tweak gitignore rules for *tests* directory 2017-02-20 20:29:43 -08:00
filter-control-sequences.fish fixup! filter control sequences 2024-11-21 21:20:35 +01:00
fish_test_helper.c Compile fish_test_helper in the test driver 2025-01-01 16:45:43 +01:00
history_sample_bash Support $(cmd) command substitution as alternative to (cmd) 2021-07-13 21:33:42 +02:00
history_sample_corrupt1 Improve history robustness against corrupt files 2014-07-29 14:42:03 -07:00
history_sample_fish_1_x Enforce that history items must end with trailing newlines 2021-05-10 14:23:07 -07:00
history_sample_fish_2_0 Enforce that history items must end with trailing newlines 2021-05-10 14:23:07 -07:00
interactive.config Remove some unused functions from the test harness 2020-11-15 09:17:23 +01:00
interactive.fish Tests: Don't cd to the tests directory! 2025-01-01 16:45:43 +01:00
littlecheck.py littlecheck: Update to shell-quote replacements 2025-01-01 16:45:43 +01:00
pexpect_helper.py Make tests usable with path with spaces 2025-01-01 16:45:43 +01:00
test.fish tests: Run filter-ctrl with %fish explicitly 2025-01-01 16:45:43 +01:00
test_driver.sh test_driver: Error out if $FISHDIR isn't given 2025-01-01 16:45:43 +01:00
test_env.sh Make tests usable with path with spaces 2025-01-01 16:45:43 +01:00
test_util.fish Run each test fully independently in own environment 2021-08-29 08:56:12 +02:00