diff options
| author | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2026-02-17 10:34:42 +0000 |
|---|---|---|
| committer | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2026-02-17 23:43:37 +0000 |
| commit | a5eb023a53932be640c31a969fa1923e1002e2ad (patch) | |
| tree | 36d00ec047e0fcbbf0c4d9d8d9edb09c2f7d70bd /test/functional/vimscript/executable_spec.lua | |
| parent | 602cbbe1d93095c204b7858d535c459e09298953 (diff) | |
fix(prompt): clear undo when changing/appending prompt
Problem: undoing after the prompt is changed breaks it (and causes init_prompt
to abort it and append a new one), as the undo history contains the old prompt.
Solution: like submitting, clear the undo buffer. Don't do it in init_prompt if
the line was empty; that may not result in a new prompt, and causes commands
like "S" to lose the history.
As u_save, etc. wasn't being called by prompt_setprompt, undoing after it fixes
the prompt usually gave undesirable results anyway.
Remove the added undo_spec.lua test, as its approach no longer works as a repro,
and finding a new one seems fiddly.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions
