Fix behavior for ielm-dynamic-multiline-inputs (bug#80123)

* lisp/ielm.el (ielm-return): Navigate to before the prompt when
looking for prompt (bug#80123).
This commit is contained in:
Jared Finder 2026-01-03 07:36:54 -08:00 committed by Sean Whitton
parent f41a594bf3
commit 8e4f96cffb

View file

@ -274,7 +274,8 @@ simply inserts a newline."
(ielm-send-input for-effect)
(when (and ielm-dynamic-multiline-inputs
(save-excursion
(beginning-of-line)
(let ((inhibit-field-text-motion t))
(beginning-of-line))
(looking-at-p comint-prompt-regexp)))
(save-excursion
(goto-char (ielm-pm))