mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-14 08:21:27 -04:00
config: tokenize key bindings' pipe command when loading the configuration
This allows us to detect syntax errors early on, and is also more efficient since we don't have to re-tokenize the command line every time the binding is executed.
This commit is contained in:
parent
6a186cb356
commit
7767041c2c
5 changed files with 50 additions and 65 deletions
|
|
@ -47,7 +47,7 @@ enum bind_action_normal {
|
|||
struct key_binding_normal {
|
||||
struct key_binding bind;
|
||||
enum bind_action_normal action;
|
||||
const char *pipe_cmd;
|
||||
char **pipe_argv;
|
||||
};
|
||||
|
||||
struct mouse_binding {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue