diff --git a/kitty/data-types.c b/kitty/data-types.c index 637eebe82..d299fe263 100644 --- a/kitty/data-types.c +++ b/kitty/data-types.c @@ -625,7 +625,7 @@ py_run_atexit_cleanup_functions(PyObject *self UNUSED, PyObject *args UNUSED) { static PyObject* py_char_props_for(PyObject *self UNUSED, PyObject *ch) { - if (!PyUnicode_Check(ch) || PyUnicode_GET_LENGTH(ch) != 1) { PyErr_SetString(PyExc_TypeError, "must suply a single character"); return NULL; } + if (!PyUnicode_Check(ch) || PyUnicode_GET_LENGTH(ch) != 1) { PyErr_SetString(PyExc_TypeError, "must supply a single character"); return NULL; } char_type c = PyUnicode_READ_CHAR(ch, 0); CharProps cp = char_props_for(c); #define B(x) #x, cp.x ? Py_True : Py_False diff --git a/kitty/fontconfig.c b/kitty/fontconfig.c index 83c2f63c0..2c97e6377 100644 --- a/kitty/fontconfig.c +++ b/kitty/fontconfig.c @@ -431,7 +431,7 @@ specialize_font_descriptor(PyObject *base_descriptor, double font_sz_in_pts, dou FcPatternDestroy(pat); pat = NULL; if (!ans) return NULL; // fontconfig returns a completely random font if the base descriptor - // points to a font that fontconfig hasnt indexed, for example the builting + // points to a font that fontconfig hasnt indexed, for example the built-in // NERD font PyObject *new_path = PyDict_GetItemString(ans, "path"); if (!new_path || PyObject_RichCompareBool(p, new_path, Py_EQ) != 1) { Py_CLEAR(ans); ans = PyDict_Copy(base_descriptor); if (!ans) return NULL; } diff --git a/kitty/keys.c b/kitty/keys.c index 68175df8f..2307657c1 100644 --- a/kitty/keys.c +++ b/kitty/keys.c @@ -305,7 +305,7 @@ on_key_input(const GLFWkeyevent *ev) { } GLFWkeyevent *k = w->buffered_keys.key_data; k[w->buffered_keys.count++] = *ev; - debug("bufferring key until child is ready\n"); + debug("buffering key until child is ready\n"); } else send_key_to_child(w->id, screen, ev); #undef dispatch_key_event } diff --git a/kitty/launch.py b/kitty/launch.py index c0012e4f8..92f28858b 100644 --- a/kitty/launch.py +++ b/kitty/launch.py @@ -215,7 +215,7 @@ of bias depends on the current layout. * Splits layout: The bias is interpreted as a percentage between 0 and 100. When splitting a window into two, the new window will take up the specified fraction -of the space alloted to the original window and the original window will take up +of the space allotted to the original window and the original window will take up the remainder of the space. * Vertical/horizontal layout: The bias is interpreted as adding/subtracting from the diff --git a/kitty/main.py b/kitty/main.py index 6ffc41344..4e916e7d8 100644 --- a/kitty/main.py +++ b/kitty/main.py @@ -255,7 +255,7 @@ def _run_app(opts: Options, args: CLIOptions, bad_lines: Sequence[BadLine] = (), global_shortcuts = {} set_window_icon() if _is_panel_kitten and not is_layer_shell_supported(): - raise SystemExit('Cannot create panels as the window manager/compositor does not support the neccessary protocols') + raise SystemExit('Cannot create panels as the window manager/compositor does not support the necessary protocols') pos_x, pos_y = None, None if args.grab_keyboard: grab_keyboard(True) diff --git a/kitty/options/utils.py b/kitty/options/utils.py index c674d1686..395a31ff5 100644 --- a/kitty/options/utils.py +++ b/kitty/options/utils.py @@ -1031,7 +1031,7 @@ def underline_exclusion(x: str) -> tuple[float, Literal['', 'px', 'pt']]: try: val = float(x[:-2]) except Exception: - raise ValueError(f'Invalid underline_exclusion with non numberic value: {x}') + raise ValueError(f'Invalid underline_exclusion with non numeric value: {x}') return val, unit diff --git a/kitty/rc/scroll_window.py b/kitty/rc/scroll_window.py index 908a9b8b6..51399d715 100644 --- a/kitty/rc/scroll_window.py +++ b/kitty/rc/scroll_window.py @@ -25,7 +25,7 @@ class ScrollWindow(RemoteCommand): 'Scroll the specified windows, if no window is specified, scroll the window this command is run inside.' ' :italic:`SCROLL_AMOUNT` can be either the keywords :code:`start` or :code:`end` or an' ' argument of the form :italic:`[unit][+-]`. :code:`unit` can be :code:`l` for lines, :code:`p` for pages,' - ' :code:`u` for unscroll and :code:`r` for scroll to prompt. If unspecifed, :code:`l` is the default.' + ' :code:`u` for unscroll and :code:`r` for scroll to prompt. If unspecified, :code:`l` is the default.' ' For example, :code:`30` will scroll down 30 lines, :code:`2p-`' ' will scroll up 2 pages and :code:`0.5p` will scroll down half page.' ' :code:`3u` will *unscroll* by 3 lines, which means that 3 lines will move from the' diff --git a/kitty/simple_cli_definitions.py b/kitty/simple_cli_definitions.py index 3aefd9920..c780f0e67 100644 --- a/kitty/simple_cli_definitions.py +++ b/kitty/simple_cli_definitions.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # License: GPLv3 Copyright: 2025, Kovid Goyal -# This module must be runnable by a vanilla python interperter +# This module must be runnable by a vanilla python interpreter # as it is used to generate C code when building kitty import re