diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-09-12 18:56:27 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-09-12 18:56:27 -0700 |
| commit | 651e58c9c9122c801bed9f6925e899fac7435440 (patch) | |
| tree | f2920127fa99b47c15e7c04e170796668100b2be /bb.c | |
| parent | 4c6f0b118fd51341913907a95c80e9020db60363 (diff) | |
Removed +bind functionality.
Diffstat (limited to 'bb.c')
| -rw-r--r-- | bb.c | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -975,24 +975,6 @@ bb_result_t process_cmd(bb_t *bb, const char *cmd) populate_files(bb, 1); return BB_OK; } - case 'b': { // +bind: - if (!value) return BB_INVALID; - char *script = strchr(value, ':'); - if (!script) return BB_INVALID; - ++script; - int i; - for (i = 0; bindings[i].keys[0] > 0; i++) { - for (int j = 0; bindings[i].keys[j]; j++) { - if (bindings[i].keys[j] == *value) { - bindings[i].script = memcheck(strdup(script)); - return BB_OK; - } - } - } - bindings[i].keys[0] = *value; - bindings[i].script = memcheck(strdup(script)); - return BB_OK; - } case 'c': { // +cd:, +columns: switch (cmd[1]) { case 'd': { // +cd: |
