Merge branch 'fix-pipe-selected-not-being-recognized-as-a-valid-action' into master

Closes #125
This commit is contained in:
Daniel Eklöf 2020-09-09 18:59:09 +02:00
commit 0ff962a182
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 4 additions and 3 deletions

View file

@ -1107,6 +1107,8 @@ parse_section_key_bindings(
LOG_AND_NOTIFY_ERR("%s:%u: [key-bindings]: %s: invalid action",
path, lineno, key);
free(pipe_cmd);
free(pipe_argv);
return false;
}

View file

@ -43,8 +43,6 @@ enum bind_action_normal {
BIND_ACTION_PIPE_VIEW,
BIND_ACTION_PIPE_SELECTED,
BIND_ACTION_KEY_COUNT = BIND_ACTION_PIPE_SELECTED,
/* Mouse specific actions - i.e. they require a mouse coordinate */
BIND_ACTION_SELECT_BEGIN,
BIND_ACTION_SELECT_BEGIN_BLOCK,
@ -53,7 +51,8 @@ enum bind_action_normal {
BIND_ACTION_SELECT_WORD_WS,
BIND_ACTION_SELECT_ROW,
BIND_ACTION_COUNT,
BIND_ACTION_KEY_COUNT = BIND_ACTION_PIPE_SELECTED + 1,
BIND_ACTION_COUNT = BIND_ACTION_SELECT_ROW + 1,
};
struct key_binding_normal {