Richard M. Stallman  committed ba59fb4

(mouse-drag-region): Ignore event end-point if it is not a number.

  • Participants
  • Parent commits b65af49
  • Branches default

Comments (0)

Files changed (1)

File lisp/mouse.el

 	    (setq end (event-end event)
 		  end-point (posn-point end))
-	    (if end-point
+	    (if (numberp end-point)
 		(setq last-end-point end-point))
 			(cons event unread-command-events)))
 	      (if (not (= (overlay-start mouse-drag-overlay)
 			  (overlay-end mouse-drag-overlay)))
-		  (let* ((stop-point (or (posn-point (event-end event)) last-end-point))
+		  (let* ((stop-point
+			  (if (numberp (posn-point (event-end event)))
+			      (posn-point (event-end event))
+			    last-end-point))
 			 ;; The end that comes from where we ended the drag.
 			 ;; Point goes here.