mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
forgot to update other backends
This commit is contained in:
@ -1165,7 +1165,7 @@ pub fn keyCallback(
|
|||||||
/// if bracketed mode is on this will do a bracketed paste. Otherwise,
|
/// if bracketed mode is on this will do a bracketed paste. Otherwise,
|
||||||
/// this will filter newlines to '\r'.
|
/// this will filter newlines to '\r'.
|
||||||
pub fn textCallback(self: *Surface, text: []const u8) !void {
|
pub fn textCallback(self: *Surface, text: []const u8) !void {
|
||||||
try self.completeClipboardPaste(text);
|
try self.completeClipboardPaste(text, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn focusCallback(self: *Surface, focused: bool) !void {
|
pub fn focusCallback(self: *Surface, focused: bool) !void {
|
||||||
@ -2463,6 +2463,7 @@ pub fn completeClipboardRequest(
|
|||||||
) !void {
|
) !void {
|
||||||
switch (req) {
|
switch (req) {
|
||||||
.paste => try self.completeClipboardPaste(data, force),
|
.paste => try self.completeClipboardPaste(data, force),
|
||||||
|
// TODO: Support sanaization for OSC 52
|
||||||
.osc_52 => |kind| try self.completeClipboardReadOSC52(data, kind),
|
.osc_52 => |kind| try self.completeClipboardReadOSC52(data, kind),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1360,7 +1360,7 @@ pub const CAPI = struct {
|
|||||||
|
|
||||||
if (str_len == 0) return;
|
if (str_len == 0) return;
|
||||||
const str = str_ptr[0..str_len];
|
const str = str_ptr[0..str_len];
|
||||||
ptr.core_surface.completeClipboardRequest(state.*, str) catch |err| {
|
ptr.core_surface.completeClipboardRequest(state.*, str, false) catch |err| {
|
||||||
log.err("error completing clipboard request err={}", .{err});
|
log.err("error completing clipboard request err={}", .{err});
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
@ -589,7 +589,7 @@ pub const Surface = struct {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Complete our request
|
// Complete our request
|
||||||
try self.core_surface.completeClipboardRequest(state, str);
|
try self.core_surface.completeClipboardRequest(state, str, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set the clipboard.
|
/// Set the clipboard.
|
||||||
|
Reference in New Issue
Block a user