mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-03 01:40:17 -05:00
commit
106e14391f
1 changed files with 2 additions and 6 deletions
8
config.c
8
config.c
|
|
@ -1637,12 +1637,12 @@ argv_compare(char *const *argv1, char *const *argv2)
|
||||||
* filled with {'cmd-to-exec', 'arg1', 'arg2', NULL}
|
* filled with {'cmd-to-exec', 'arg1', 'arg2', NULL}
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* - ssize_t, number of bytes to strip from 'value' to remove the '[]'
|
* - ssize_t, number of bytes that were stripped from 'value' to remove the '[]'
|
||||||
* enclosed cmd and its arguments, including any subsequent
|
* enclosed cmd and its arguments, including any subsequent
|
||||||
* whitespace characters. I.e. if 'value' is "[cmd] BTN_RIGHT", the
|
* whitespace characters. I.e. if 'value' is "[cmd] BTN_RIGHT", the
|
||||||
* return value is 6 (strlen("[cmd] ")).
|
* return value is 6 (strlen("[cmd] ")).
|
||||||
* - cmd: allocated string containing "cmd arg1 arg2...". Caller frees.
|
* - cmd: allocated string containing "cmd arg1 arg2...". Caller frees.
|
||||||
* - argv: allocatd array containing {"cmd", "arg1", "arg2", NULL}. Caller frees.
|
* - argv: allocated array containing {"cmd", "arg1", "arg2", NULL}. Caller frees.
|
||||||
*/
|
*/
|
||||||
static ssize_t
|
static ssize_t
|
||||||
pipe_argv_from_value(struct context *ctx, char ***argv)
|
pipe_argv_from_value(struct context *ctx, char ***argv)
|
||||||
|
|
@ -1727,8 +1727,6 @@ parse_key_binding_section(struct context *ctx,
|
||||||
if (pipe_remove_len < 0)
|
if (pipe_remove_len < 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
ctx->value += pipe_remove_len;
|
|
||||||
|
|
||||||
for (int action = 0; action < action_count; action++) {
|
for (int action = 0; action < action_count; action++) {
|
||||||
if (action_map[action] == NULL)
|
if (action_map[action] == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
@ -2105,8 +2103,6 @@ parse_section_mouse_bindings(struct context *ctx)
|
||||||
if (pipe_remove_len < 0)
|
if (pipe_remove_len < 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
value += pipe_remove_len;
|
|
||||||
|
|
||||||
for (enum bind_action_normal action = 0;
|
for (enum bind_action_normal action = 0;
|
||||||
action < BIND_ACTION_COUNT;
|
action < BIND_ACTION_COUNT;
|
||||||
action++)
|
action++)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue