mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-25 10:47:00 +00:00
(mouse-choose-completion): Check for next-single-property-change
returning nil.
This commit is contained in:
parent
88dd3c24e8
commit
2f5ed2e8b3
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user