diff --git a/macos/Sources/Ghostty/SurfaceView_AppKit.swift b/macos/Sources/Ghostty/SurfaceView_AppKit.swift index 410646f6f..46014ac25 100644 --- a/macos/Sources/Ghostty/SurfaceView_AppKit.swift +++ b/macos/Sources/Ghostty/SurfaceView_AppKit.swift @@ -1728,10 +1728,13 @@ extension Ghostty.SurfaceView: NSTextInputClient { // Ghostty coordinates are in top-left (0, 0) so we have to convert to // bottom-left since that is what UIKit expects + // when there's is no characters selected, + // width should be 0 so that dictation indicator + // can start in the right place let viewRect = NSMakeRect( x, frame.size.height - y, - max(width, cellSize.width), + width, max(height, cellSize.height)) // Convert the point to the window coordinates