diff options
author | Richard M. Stallman <[email protected]> | 1994-07-29 21:42:41 +0000 |
---|---|---|
committer | Richard M. Stallman <[email protected]> | 1994-07-29 21:42:41 +0000 |
commit | 2f5ed2e8b3d75043cf246e41ed8a000864ae6012 (patch) | |
tree | 5388b0f4993e7c7d10f45b6de8912b09b2db4058 /lisp/mouse.el | |
parent | 88dd3c24e898d5f281513b5d31d53e87f46c8278 (diff) |
(mouse-choose-completion): Check for next-single-property-change
returning nil.
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r-- | lisp/mouse.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index 21264adf6a..1e9b664c36 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -1204,7 +1204,8 @@ and selects that window." (if (null beg) (error "No completion here")) (setq beg (previous-single-property-change beg 'mouse-face)) - (setq end (next-single-property-change end 'mouse-face)) + (setq end (or (next-single-property-change end 'mouse-face) + (point-max))) (setq choice (buffer-substring beg end))))) (let ((owindow (selected-window))) (select-window (posn-window (event-start event))) |