mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-29 20:07:55 +00:00
chore: fixed some typo
Author: rezky_nightky <with dot rezky at gmail dot com> Repository: ghostty Branch: main Signing: GPG (4B65AAC2) HashAlgo: BLAKE3 [ Block Metadata ] BlockHash: c37f4ee817412728a8058ba6087f5ca6aaff5a845560447d595d8055972d0eac PrevHash: 3510917a780936278debe21786b7bae3a2162cb3857957314c3b8702e921b3d4 PatchHash: 5e5bb4ab35df304ea13c3d297c6d9a965156052c82bccf852b1f00b7bcaa7dd4 FilesChanged: 18 Lines: +92 / -92 Timestamp: 2025-12-25T17:27:08Z Signature1: c1970dbb94600d1e24dfe8efcc00f001664db7b777902df9632a689b1d9d1498 Signature2: 30babb1e3ca07264931e067bfe36c676fb7988c2e06f8c54e0c9538fe7c7fc9a
This commit is contained in:
@@ -1222,7 +1222,7 @@ fn childExited(self: *Surface, info: apprt.surface.Message.ChildExited) void {
|
||||
break :gui false;
|
||||
}) return;
|
||||
|
||||
// If a native GUI notification was not showm. update our terminal to
|
||||
// If a native GUI notification was not shown, update our terminal to
|
||||
// note the abnormal exit.
|
||||
self.childExitedAbnormally(info) catch |err| {
|
||||
log.err("error handling abnormal child exit err={}", .{err});
|
||||
@@ -1232,7 +1232,7 @@ fn childExited(self: *Surface, info: apprt.surface.Message.ChildExited) void {
|
||||
return;
|
||||
}
|
||||
|
||||
// We output a message so that the user knows whats going on and
|
||||
// We output a message so that the user knows what's going on and
|
||||
// doesn't think their terminal just froze. We show this unconditionally
|
||||
// on close even if `wait_after_command` is false and the surface closes
|
||||
// immediately because if a user does an `undo` to restore a closed
|
||||
|
||||
@@ -221,7 +221,7 @@ pub fn open(
|
||||
|
||||
// Unlikely scenario: the theme doesn't exist. In this case, we reset
|
||||
// our iterator, reiterate over in order to build a better error message.
|
||||
// This does double allocate some memory but for errors I think thats
|
||||
// This does double allocate some memory but for errors I think that's
|
||||
// fine.
|
||||
it.reset();
|
||||
while (try it.next()) |loc| {
|
||||
|
||||
@@ -562,7 +562,7 @@ test "exact fit" {
|
||||
try testing.expectError(Error.AtlasFull, atlas.reserve(alloc, 1, 1));
|
||||
}
|
||||
|
||||
test "doesnt fit" {
|
||||
test "doesn't fit" {
|
||||
const alloc = testing.allocator;
|
||||
var atlas = try init(alloc, 32, .grayscale);
|
||||
defer atlas.deinit(alloc);
|
||||
|
||||
@@ -52,7 +52,7 @@ pub const Shaper = struct {
|
||||
|
||||
/// Cached attributes dict for creating CTTypesetter objects.
|
||||
/// The values in this never change so we can avoid overhead
|
||||
/// by just creating it once and saving it for re-use.
|
||||
/// by just creating it once and saving it for reuse.
|
||||
typesetter_attr_dict: *macos.foundation.Dictionary,
|
||||
|
||||
/// List where we cache fonts, so we don't have to remake them for
|
||||
|
||||
@@ -405,7 +405,7 @@ fn testDrawRanges(
|
||||
const padding_x = width / 4;
|
||||
const padding_y = height / 4;
|
||||
|
||||
// Canvas to draw glyphs on, we'll re-use this for all glyphs.
|
||||
// Canvas to draw glyphs on, we'll reuse this for all glyphs.
|
||||
var canvas = try font.sprite.Canvas.init(
|
||||
alloc,
|
||||
width,
|
||||
|
||||
@@ -2020,7 +2020,7 @@ pub const Set = struct {
|
||||
///
|
||||
/// `buffer_stream` is a FixedBufferStream used for temporary storage
|
||||
/// that is shared between calls to nested levels of the set.
|
||||
/// For example, 'a>b>c=x' and 'a>b>d=y' will re-use the 'a>b' written
|
||||
/// For example, 'a>b>c=x' and 'a>b>d=y' will reuse the 'a>b' written
|
||||
/// to the buffer before flushing it to the formatter with 'c=x' and 'd=y'.
|
||||
pub fn formatEntries(
|
||||
self: Value,
|
||||
|
||||
@@ -153,7 +153,7 @@ fn kitty(
|
||||
|
||||
// IME confirmation still sends an enter key so if we have enter
|
||||
// and UTF8 text we just send it directly since we assume that is
|
||||
// whats happening. See legacy()'s similar logic for more details
|
||||
// what's happening. See legacy()'s similar logic for more details
|
||||
// on how to verify this.
|
||||
if (event.utf8.len > 0) utf8: {
|
||||
switch (event.key) {
|
||||
|
||||
@@ -10,7 +10,7 @@ pub const ButtonState = enum(c_int) {
|
||||
press,
|
||||
};
|
||||
|
||||
/// Possible mouse buttons. We only track up to 11 because thats the maximum
|
||||
/// Possible mouse buttons. We only track up to 11 because that's the maximum
|
||||
/// button input that terminal mouse tracking handles without becoming
|
||||
/// ambiguous.
|
||||
///
|
||||
|
||||
@@ -1213,7 +1213,7 @@ fn renderTermioWindow(self: *Inspector) void {
|
||||
cimgui.c.igText("%s", ev.str.ptr);
|
||||
|
||||
// If the event is selected, we render info about it. For now
|
||||
// we put this in the last column because thats the widest and
|
||||
// we put this in the last column because that's the widest and
|
||||
// imgui has no way to make a column span.
|
||||
if (ev.imgui_selected) {
|
||||
{
|
||||
|
||||
@@ -2099,7 +2099,7 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
|
||||
}
|
||||
|
||||
// We also need to reset the shaper cache so shaper info
|
||||
// from the previous font isn't re-used for the new font.
|
||||
// from the previous font isn't reused for the new font.
|
||||
const font_shaper_cache = font.ShaperCache.init();
|
||||
self.font_shaper_cache.deinit(self.alloc);
|
||||
self.font_shaper_cache = font_shaper_cache;
|
||||
|
||||
@@ -675,7 +675,7 @@ fn printCell(
|
||||
|
||||
// TODO: this case was not handled in the old terminal implementation
|
||||
// but it feels like we should do something. investigate other
|
||||
// terminals (xterm mainly) and see whats up.
|
||||
// terminals (xterm mainly) and see what's up.
|
||||
.spacer_head => {},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -256,7 +256,7 @@ pub const Placement = struct {
|
||||
if (img_scale_source.y < img_scaled.y_offset) {
|
||||
// If our source rect y is within the offset area, we need to
|
||||
// adjust our source rect and destination since the source texture
|
||||
// doesnt actually have the offset area blank.
|
||||
// doesn't actually have the offset area blank.
|
||||
const offset: f64 = img_scaled.y_offset - img_scale_source.y;
|
||||
img_scale_source.height -= offset;
|
||||
y_offset = offset;
|
||||
@@ -286,7 +286,7 @@ pub const Placement = struct {
|
||||
if (img_scale_source.x < img_scaled.x_offset) {
|
||||
// If our source rect x is within the offset area, we need to
|
||||
// adjust our source rect and destination since the source texture
|
||||
// doesnt actually have the offset area blank.
|
||||
// doesn't actually have the offset area blank.
|
||||
const offset: f64 = img_scaled.x_offset - img_scale_source.x;
|
||||
img_scale_source.width -= offset;
|
||||
x_offset = offset;
|
||||
|
||||
@@ -215,7 +215,7 @@ pub fn RefCountedSet(
|
||||
OutOfMemory,
|
||||
|
||||
/// The set needs to be rehashed, as there are many dead
|
||||
/// items with lower IDs which are inaccessible for re-use.
|
||||
/// items with lower IDs which are inaccessible for reuse.
|
||||
NeedsRehash,
|
||||
};
|
||||
|
||||
@@ -437,7 +437,7 @@ pub fn RefCountedSet(
|
||||
}
|
||||
|
||||
/// Delete an item, removing any references from
|
||||
/// the table, and freeing its ID to be re-used.
|
||||
/// the table, and freeing its ID to be reused.
|
||||
fn deleteItem(self: *Self, base: anytype, id: Id, ctx: Context) void {
|
||||
const table = self.table.ptr(base);
|
||||
const items = self.items.ptr(base);
|
||||
@@ -585,7 +585,7 @@ pub fn RefCountedSet(
|
||||
const item = &items[id];
|
||||
|
||||
// If there's a dead item then we resurrect it
|
||||
// for our value so that we can re-use its ID,
|
||||
// for our value so that we can reuse its ID,
|
||||
// unless its ID is greater than the one we're
|
||||
// given (i.e. prefer smaller IDs).
|
||||
if (item.meta.ref == 0) {
|
||||
@@ -645,7 +645,7 @@ pub fn RefCountedSet(
|
||||
}
|
||||
|
||||
// Our chosen ID may have changed if we decided
|
||||
// to re-use a dead item's ID, so we make sure
|
||||
// to reuse a dead item's ID, so we make sure
|
||||
// the chosen bucket contains the correct ID.
|
||||
table[new_item.meta.bucket] = chosen_id;
|
||||
|
||||
|
||||
@@ -208,7 +208,7 @@ pub const Viewer = struct {
|
||||
/// caller is responsible for diffing the new window list against
|
||||
/// the prior one. Remember that for a given Viewer, window IDs
|
||||
/// are guaranteed to be stable. Additionally, tmux (as of Dec 2025)
|
||||
/// never re-uses window IDs within a server process lifetime.
|
||||
/// never reuses window IDs within a server process lifetime.
|
||||
windows: []const Window,
|
||||
|
||||
pub fn format(self: Action, writer: *std.Io.Writer) !void {
|
||||
|
||||
Reference in New Issue
Block a user