fish-shell/tests/pexpects
Johannes Altmanninger 610338cc70 On undo after execute, restore the cursor position
Ever since 149594f974 (Initial revision, 2005-09-20), we move the
cursor to the end of the commandline just before executing it.

This is so we can move the cursor to the line below the command line,
so moving the cursor is relevant if one presses enter on say, the
first line of a multi-line commandline.

As mentioned in #10838 and others, it can be useful to restore the
cursor position when recalling commandline from history. Make undo
restore the position where enter was pressed, instead of implicitly
moving the cursor to the end. This allows to quickly correct small
mistakes in large commandlines that failed recently.

This requires a new way of moving the cursor below the command line.
Test changes include unrelated cleanup of history.py.
2024-12-21 13:10:34 +01:00
..
abbrs.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
bind.py On undo after execute, restore the cursor position 2024-12-21 13:10:34 +01:00
bind_mode_events.py On undo after execute, restore the cursor position 2024-12-21 13:10:34 +01:00
cancel_event.py Control-C to simply clear commandline buffer again 2024-01-17 19:54:57 +01:00
commandline.py Add pexpect test for commandline --showing-suggestion 2024-07-07 22:34:36 -05:00
complete-group-order.py complete: Sort --keep-order completions smaller 2024-10-05 13:53:02 +02:00
complete.py On undo after execute, restore the cursor position 2024-12-21 13:10:34 +01:00
cursor_selection.py Restyle fishscript and python 2023-06-01 18:20:19 +02:00
disable_mouse.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
eval-stack-overflow.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
exit.py pexpects: Disable exit on CI Darwin/FreeBSD 2024-12-15 17:33:12 +01:00
exit_handlers.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
exit_nohang.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
fg.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
fkr.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
generic.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
histfile.py Fix the histfile.py test 2024-06-02 15:31:19 -07:00
history.py On undo after execute, restore the cursor position 2024-12-21 13:10:34 +01:00
isatty.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
job_summary.py tests/pexpect: Fix \d escape 2024-04-02 22:41:54 +02:00
nullterm.py Be careful to not touch curses variables if cur_term is null 2022-04-16 13:26:56 -07:00
pipeline.py Improve error for redirections to invalid paths 2021-11-20 17:44:05 +01:00
postexec.py Reformat 2020-11-22 14:39:48 +01:00
private_mode.py Restyle fishscript and python 2023-06-01 18:20:19 +02:00
prompt_redraw_loop.py Fix infinite prompt loop if status message is printed in prompt 2024-12-08 18:12:59 -08:00
read.py On undo after execute, restore the cursor position 2024-12-21 13:10:34 +01:00
set_color.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
sigint.py Add missing expect_prompt to test_sigint.py 2024-01-07 00:54:22 +01:00
signals.py One more FreeBSD-only-in-CI 2024-12-15 17:38:37 +01:00
status.py On undo after execute, restore the cursor position 2024-12-21 13:10:34 +01:00
stdin_nonblocking.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
terminal.py Disable terminal protocols throughout evaluation 2024-04-02 21:25:47 +02:00
torn_escapes.py pexpects: Disable 2 only on CI 2024-12-15 17:32:47 +01:00
tty_ownership.py Claim the tty unconditionally in reader_data_t::readline 2022-09-09 13:43:29 -07:00
undo.py Fix the undo pexpect 2024-06-02 14:17:36 -07:00
wait.py share/config.fish: Quit if job expansion hack errors 2023-06-10 15:36:36 +02:00
wildcard_tab.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00