On Mon, May 29 2023 22:02, Jim Porter wrote: > A test would be great. See "test/lisp/eshell/em-prompt-tests.el": > another test based on 'em-prompt-test/next-previous-prompt' (and > possibly 'em-prompt-test/forward-backward-matching-input' too) should be > sufficient, I think. > > If you want to add a test yourself, go for it, and let me know if you > run into any issues. Otherwise if you prefer, I can write a test case > for this. Okay, I now added some hopefully sufficient tests for this based on both next-previous-prompt and forward-backward-matching-input (if that's not too overkill). Let me know what you think.