]> git.eshelyaron.com Git - emacs.git/commitdiff
NS: Fix placement of candidate window (bug#72422)
authorGerd Möllmann <gerd@gnu.org>
Sat, 3 Aug 2024 08:29:24 +0000 (10:29 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 6 Aug 2024 09:54:39 +0000 (11:54 +0200)
* src/nsterm.m ([EmacsView firstRectForCharacterRange:actualRange:]):
Call method of NSTextInput.

(cherry picked from commit e539a5c7d79b76eb16eed4cb5da4c3a531a640b4)

src/nsterm.m

index b56c587bc698ade0fa5080a4033e54a49402a3a7..b883e605a5b046537bea8e7f57c74da436218cf3 100644 (file)
@@ -7064,7 +7064,7 @@ ns_create_font_panel_buttons (id target, SEL select, SEL cancel_action)
 - (NSRect) firstRectForCharacterRange: (NSRange) range
                          actualRange: (nullable NSRangePointer) actualRange
 {
-  return NSZeroRect;
+  return [self firstRectForCharacterRange: range];
 }
 
 #endif /* NS_IMPL_COCOA */