mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-29 20:07:55 +00:00
Clear selection when IME input starts
This commit is contained in:
@@ -1550,6 +1550,11 @@ pub const CAPI = struct {
|
||||
return selection.len;
|
||||
}
|
||||
|
||||
/// Clear the current selection in the surface.
|
||||
export fn ghostty_surface_clear_selection(surface: *Surface) void {
|
||||
surface.core_surface.io.terminal.screen.clearSelection();
|
||||
}
|
||||
|
||||
/// Tell the surface that it needs to schedule a render
|
||||
export fn ghostty_surface_refresh(surface: *Surface) void {
|
||||
surface.refresh();
|
||||
|
||||
Reference in New Issue
Block a user