Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing a few typos in the source code comments #4529

Merged
merged 6 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/apprt/gtk/App.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,7 @@ fn gtkActionPresentSurface(

// Convert that u64 to pointer to a core surface. A value of zero
// 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);
if (ptr_int == 0) return;
const surface: *CoreSurface = @ptrFromInt(ptr_int);
Expand Down
2 changes: 1 addition & 1 deletion src/apprt/gtk/key.zig
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub fn eventMods(

// 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
// presssed (i.e. left control).
// pressed (i.e. left control).
break :mods translateMods(c.gdk_device_get_modifier_state(device));
};

Expand Down
2 changes: 1 addition & 1 deletion src/config/Config.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2916,7 +2916,7 @@ pub fn loadCliArgs(self: *Config, alloc_gpa: Allocator) !void {
self.@"config-default-files" = true;

// 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;

// Keep track of font families because if they are set from the CLI
Expand Down
4 changes: 2 additions & 2 deletions src/input/key.zig
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ pub const Key = enum(c_int) {
eight,
nine,

// puncuation
// punctuation
semicolon,
space,
apostrophe,
Expand Down Expand Up @@ -411,7 +411,7 @@ pub const Key = enum(c_int) {
/// may be from the number row or the keypad, but it always maps
/// 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.
pub fn fromASCII(ch: u8) ?Key {
return switch (ch) {
Expand Down
2 changes: 1 addition & 1 deletion src/inspector/termio.zig
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub const VTEvent = struct {
const Kind = enum { print, execute, csi, esc, osc, dcs, apc };
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(
alloc: Allocator,
surface: *Surface,
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/OpenGL.zig
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ pub fn updateFrame(

// We used to share terminal state, but we've since learned through
// 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(
self.alloc,
.{ .viewport = .{} },
Expand Down