diff options
Diffstat (limited to 'fish/edit.c')
-rw-r--r-- | fish/edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fish/edit.c b/fish/edit.c index 1b6ce23c..d30b3cad 100644 --- a/fish/edit.c +++ b/fish/edit.c @@ -88,9 +88,9 @@ do_edit (const char *cmd, int argc, char *argv[]) } /* Choose an editor. */ - if (strcasecmp (cmd, "vi") == 0) + if (STRCASEEQ (cmd, "vi")) editor = "vi"; - else if (strcasecmp (cmd, "emacs") == 0) + else if (STRCASEEQ (cmd, "emacs")) editor = "emacs -nw"; else { editor = getenv ("EDITOR"); |