diff options
| author | Luc Teirlinck | 2005-10-30 16:42:48 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2005-10-30 16:42:48 +0000 |
| commit | b43fa134185c3e38964a61006b1c7e1c5e9c9fd8 (patch) | |
| tree | e9447c554e5020bb4981943497dce97bb9bcae1e | |
| parent | 8c633bb4ae8c637b745455ad7b604cf57b042c6d (diff) | |
| download | emacs-b43fa134185c3e38964a61006b1c7e1c5e9c9fd8.tar.gz emacs-b43fa134185c3e38964a61006b1c7e1c5e9c9fd8.zip | |
(comint-send-input): Call `comint-update-fence' when
`comint-process-echoes' and `comint-prompt-read-only' are both
non-nil, to avoid leftover read-only newline.
| -rw-r--r-- | lisp/comint.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 2ae5e049023..3d9da2b8ea2 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -1550,7 +1550,11 @@ Similarly for Soar, Scheme, etc." | |||
| 1550 | ;; problems when `comint-prompt-read-only' is non-nil. | 1550 | ;; problems when `comint-prompt-read-only' is non-nil. |
| 1551 | (let ((inhibit-read-only t)) | 1551 | (let ((inhibit-read-only t)) |
| 1552 | (delete-region comint-last-input-end | 1552 | (delete-region comint-last-input-end |
| 1553 | (+ comint-last-input-end echo-len)))))) | 1553 | (+ comint-last-input-end echo-len)) |
| 1554 | (when comint-prompt-read-only | ||
| 1555 | (save-excursion | ||
| 1556 | (goto-char comint-last-input-end) | ||
| 1557 | (comint-update-fence))))))) | ||
| 1554 | 1558 | ||
| 1555 | ;; This used to call comint-output-filter-functions, | 1559 | ;; This used to call comint-output-filter-functions, |
| 1556 | ;; but that scrolled the buffer in undesirable ways. | 1560 | ;; but that scrolled the buffer in undesirable ways. |