diff --git a/lisp/touch-screen.el b/lisp/touch-screen.el index e4bbcda0134..d8e9dc2d791 100644 --- a/lisp/touch-screen.el +++ b/lisp/touch-screen.el @@ -23,8 +23,8 @@ ;;; Commentary: ;; This file provides code to recognize simple touch screen gestures. -;; It is used on X, PGTK, and Android, currently the only systems where -;; Emacs supports touch input. +;; It is used on X, PGTK, Android, and MS-Windows, currently the only +;; systems where Emacs supports touch input. ;; ;; See (elisp)Touchscreen Events for a description of the details of ;; touch events. diff --git a/src/nsterm.m b/src/nsterm.m index b56c587bc69..b883e605a5b 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -7064,7 +7064,7 @@ - (void) setMarkedText: (id) string - (NSRect) firstRectForCharacterRange: (NSRange) range actualRange: (nullable NSRangePointer) actualRange { - return NSZeroRect; + return [self firstRectForCharacterRange: range]; } #endif /* NS_IMPL_COCOA */