Fixing a few typos in the source code comments (#4529)

This commit is contained in:
Peter Cock
2025-01-03 19:00:45 +00:00
committed by GitHub
parent 7eb35d7275
commit 6459e5c8ca
6 changed files with 7 additions and 7 deletions

View File

@ -1644,7 +1644,7 @@ fn gtkActionPresentSurface(
// Convert that u64 to pointer to a core surface. A value of zero // Convert that u64 to pointer to a core surface. A value of zero
// means that there was no target surface for the notification so // means that there was no target surface for the notification so
// we dont' focus any surface. // we don't focus any surface.
const ptr_int: u64 = c.g_variant_get_uint64(parameter); const ptr_int: u64 = c.g_variant_get_uint64(parameter);
if (ptr_int == 0) return; if (ptr_int == 0) return;
const surface: *CoreSurface = @ptrFromInt(ptr_int); const surface: *CoreSurface = @ptrFromInt(ptr_int);

View File

@ -129,7 +129,7 @@ pub fn eventMods(
// On Wayland, we have to use the GDK device because the mods sent // On Wayland, we have to use the GDK device because the mods sent
// to this event do not have the modifier key applied if it was // to this event do not have the modifier key applied if it was
// presssed (i.e. left control). // pressed (i.e. left control).
break :mods translateMods(c.gdk_device_get_modifier_state(device)); break :mods translateMods(c.gdk_device_get_modifier_state(device));
}; };

View File

@ -2916,7 +2916,7 @@ pub fn loadCliArgs(self: *Config, alloc_gpa: Allocator) !void {
self.@"config-default-files" = true; self.@"config-default-files" = true;
// Keep track of the replay steps up to this point so we // Keep track of the replay steps up to this point so we
// can replay if we are disgarding the default files. // can replay if we are discarding the default files.
const replay_len_start = self._replay_steps.items.len; const replay_len_start = self._replay_steps.items.len;
// Keep track of font families because if they are set from the CLI // Keep track of font families because if they are set from the CLI

View File

@ -295,7 +295,7 @@ pub const Key = enum(c_int) {
eight, eight,
nine, nine,
// puncuation // punctuation
semicolon, semicolon,
space, space,
apostrophe, apostrophe,
@ -411,7 +411,7 @@ pub const Key = enum(c_int) {
/// may be from the number row or the keypad, but it always maps /// may be from the number row or the keypad, but it always maps
/// to '.zero'. /// to '.zero'.
/// ///
/// This is what we want, we awnt people to create keybindings that /// This is what we want, we want people to create keybindings that
/// are independent of the physical key. /// are independent of the physical key.
pub fn fromASCII(ch: u8) ?Key { pub fn fromASCII(ch: u8) ?Key {
return switch (ch) { return switch (ch) {

View File

@ -35,7 +35,7 @@ pub const VTEvent = struct {
const Kind = enum { print, execute, csi, esc, osc, dcs, apc }; const Kind = enum { print, execute, csi, esc, osc, dcs, apc };
const Metadata = std.StringHashMap([:0]const u8); const Metadata = std.StringHashMap([:0]const u8);
/// Initiaze the event information for the given parser action. /// Initialize the event information for the given parser action.
pub fn init( pub fn init(
alloc: Allocator, alloc: Allocator,
surface: *Surface, surface: *Surface,

View File

@ -764,7 +764,7 @@ pub fn updateFrame(
// We used to share terminal state, but we've since learned through // We used to share terminal state, but we've since learned through
// analysis that it is faster to copy the terminal state than to // analysis that it is faster to copy the terminal state than to
// hold the lock wile rebuilding GPU cells. // hold the lock while rebuilding GPU cells.
var screen_copy = try state.terminal.screen.clone( var screen_copy = try state.terminal.screen.clone(
self.alloc, self.alloc,
.{ .viewport = .{} }, .{ .viewport = .{} },