diff options
| -rw-r--r-- | lisp/comint.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 66749d0f2a8..591be5e2d9d 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -847,9 +847,10 @@ by the global keymap (usually `mouse-yank-at-click')." | |||
| 847 | ;; If pos is at the very end of a field, the mouse-click was | 847 | ;; If pos is at the very end of a field, the mouse-click was |
| 848 | ;; probably outside (to the right) of the field. | 848 | ;; probably outside (to the right) of the field. |
| 849 | (and (< pos (field-end pos)) | 849 | (and (< pos (field-end pos)) |
| 850 | (setq field (field-at-pos pos)) | 850 | (< (field-end pos) (point-max)) |
| 851 | (setq input (field-string-no-properties pos)))) | 851 | (progn (setq field (field-at-pos pos)) |
| 852 | (if (or (null comint-accum-marker) field) | 852 | (setq input (field-string-no-properties pos))))) |
| 853 | (if (or (null input) (null comint-accum-marker) field) | ||
| 853 | ;; Fall back to the global definition if (i) the selected | 854 | ;; Fall back to the global definition if (i) the selected |
| 854 | ;; buffer is not a comint buffer (which can happen if a | 855 | ;; buffer is not a comint buffer (which can happen if a |
| 855 | ;; non-comint window was selected and we clicked in a comint | 856 | ;; non-comint window was selected and we clicked in a comint |