mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-22 12:54:34 +00:00
Give the autoformatter what it wants
This commit is contained in:
@@ -170,7 +170,7 @@ pub const Face = struct {
|
||||
if (string.len > 1024) break :skip;
|
||||
var tmp: [512]u16 = undefined;
|
||||
const max = string.len / 2;
|
||||
for (@as([]const u16, @alignCast(@ptrCast(string))), 0..) |c, j| tmp[j] = @byteSwap(c);
|
||||
for (@as([]const u16, @ptrCast(@alignCast(string))), 0..) |c, j| tmp[j] = @byteSwap(c);
|
||||
const len = std.unicode.utf16LeToUtf8(buf, tmp[0..max]) catch return string;
|
||||
return buf[0..len];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user