mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 02:02:14 +02:00
Fixed typos
This commit is contained in:
committed by
Kovid Goyal
parent
33f278b477
commit
3b20936959
@@ -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
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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:`<number>[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'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
# License: GPLv3 Copyright: 2025, Kovid Goyal <kovid at kovidgoyal.net>
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user