mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04:00
fix some small typos
This commit is contained in:
parent
a1796ba5cd
commit
5539eac590
3 changed files with 7 additions and 7 deletions
10
config.c
10
config.c
|
|
@ -476,7 +476,7 @@ static bool NOINLINE
|
||||||
value_to_dimensions(struct context *ctx, uint32_t *x, uint32_t *y)
|
value_to_dimensions(struct context *ctx, uint32_t *x, uint32_t *y)
|
||||||
{
|
{
|
||||||
if (sscanf(ctx->value, "%ux%u", x, y) != 2) {
|
if (sscanf(ctx->value, "%ux%u", x, y) != 2) {
|
||||||
LOG_CONTEXTUAL_ERR("invalid dimensions (must be on the form AxB)");
|
LOG_CONTEXTUAL_ERR("invalid dimensions (must be in the form AxB)");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -616,7 +616,7 @@ value_to_pt_or_px(struct context *ctx, struct pt_or_px *res)
|
||||||
|
|
||||||
long value = strtol(s, &end, 10);
|
long value = strtol(s, &end, 10);
|
||||||
if (!(errno == 0 && end == s + len - 2)) {
|
if (!(errno == 0 && end == s + len - 2)) {
|
||||||
LOG_CONTEXTUAL_ERR("invalid px value (must be on the form 12px)");
|
LOG_CONTEXTUAL_ERR("invalid px value (must be in the form 12px)");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
res->pt = 0;
|
res->pt = 0;
|
||||||
|
|
@ -834,7 +834,7 @@ parse_section_main(struct context *ctx)
|
||||||
|
|
||||||
if ((ret != 2 && ret != 3) || invalid_mode) {
|
if ((ret != 2 && ret != 3) || invalid_mode) {
|
||||||
LOG_CONTEXTUAL_ERR(
|
LOG_CONTEXTUAL_ERR(
|
||||||
"invalid padding (must be on the form PAD_XxPAD_Y [center])");
|
"invalid padding (must be in the form PAD_XxPAD_Y [center])");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1714,13 +1714,13 @@ modifiers_to_str(const struct config_key_modifiers *mods)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Parses a key binding value on the form
|
* Parses a key binding value in the form
|
||||||
* "[cmd-to-exec arg1 arg2] Mods+Key"
|
* "[cmd-to-exec arg1 arg2] Mods+Key"
|
||||||
*
|
*
|
||||||
* and extracts 'cmd-to-exec' and its arguments.
|
* and extracts 'cmd-to-exec' and its arguments.
|
||||||
*
|
*
|
||||||
* Input:
|
* Input:
|
||||||
* - value: raw string, on the form mention above
|
* - value: raw string, in the form mentioned above
|
||||||
* - cmd: pointer to string to will be allocated and filled with
|
* - cmd: pointer to string to will be allocated and filled with
|
||||||
* 'cmd-to-exec arg1 arg2'
|
* 'cmd-to-exec arg1 arg2'
|
||||||
* - argv: point to array of string. Array will be allocated. Will be
|
* - argv: point to array of string. Array will be allocated. Will be
|
||||||
|
|
|
||||||
|
|
@ -605,7 +605,7 @@ All _OSC_ sequences begin with *\\E]*, sometimes abbreviated _OSC_.
|
||||||
| \\E] 7 ; _Uri_ \\E\\
|
| \\E] 7 ; _Uri_ \\E\\
|
||||||
: iTerm2
|
: iTerm2
|
||||||
: Update the terminal's current working directory. Newly spawned
|
: Update the terminal's current working directory. Newly spawned
|
||||||
terminals will launch in this directory. _Uri_ must be on the format
|
terminals will launch in this directory. _Uri_ must be in the format
|
||||||
*file://<hostname>/<path>*. *hostname* must refer to your local host.
|
*file://<hostname>/<path>*. *hostname* must refer to your local host.
|
||||||
| \\E] 8 ; id=_ID_ ; _Uri_ \\E\\
|
| \\E] 8 ; id=_ID_ ; _Uri_ \\E\\
|
||||||
: VTE+iTerm2
|
: VTE+iTerm2
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@ urls_input(struct seat *seat, struct terminal *term, uint32_t key,
|
||||||
char32_t wc = xkb_state_key_get_utf32(seat->kbd.xkb_state, key);
|
char32_t wc = xkb_state_key_get_utf32(seat->kbd.xkb_state, key);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Determine if this is a “valid” key. I.e. if there is an URL
|
* Determine if this is a “valid” key. I.e. if there is a URL
|
||||||
* label with a key combo where this key is the next in
|
* label with a key combo where this key is the next in
|
||||||
* sequence.
|
* sequence.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue