aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2015-04-22 13:59:49 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-04-22 20:26:00 +0200
commit8cda50ce7107dfedf6ef1a0cc0f893c864158c3b (patch)
treec0320176cc8bedb6b735d8a93fadb8eb3838c3d3 /vis.c
parent5ecac7df827575a5c98c1e847432d360486b3f29 (diff)
downloadvis-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis.c b/vis.c
index b05672f..55fc299 100644
--- a/vis.c
+++ b/vis.c
@@ -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;
}