diff options
| author | Christian Hesse <mail@eworm.de> | 2015-04-22 13:59:49 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-04-22 20:26:00 +0200 |
| commit | 8cda50ce7107dfedf6ef1a0cc0f893c864158c3b (patch) | |
| tree | c0320176cc8bedb6b735d8a93fadb8eb3838c3d3 /vis.c | |
| parent | 5ecac7df827575a5c98c1e847432d360486b3f29 (diff) | |
| download | vis-8cda50ce7107dfedf6ef1a0cc0f893c864158c3b.tar.gz vis-8cda50ce7107dfedf6ef1a0cc0f893c864158c3b.tar.xz | |
for editor command compare string, not just first character
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1995,7 +1995,7 @@ int main(int argc, char *argv[]) { while (*arg0 && (*arg0 == '.' || *arg0 == '/')) arg0++; for (int i = 0; i < LENGTH(editors); i++) { - if (editors[i].name[0] == arg0[0]) { + if (strcmp(editors[i].name, arg0) == 0) { config = &editors[i]; break; } |
