Skip to content

Commit

Permalink
Replace isatty with os_isatty in message.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Hettomei committed May 8, 2015
1 parent 3c34866 commit a083983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nvim/message.c
Expand Up @@ -2238,7 +2238,7 @@ void mch_errmsg(char *str)
/* On Unix use stderr if it's a tty.
* When not going to start the GUI also use stderr.
* On Mac, when started from Finder, stderr is the console. */
if (isatty(2)) {
if (os_isatty(2)) {
fprintf(stderr, "%s", str);
return;
}
Expand Down Expand Up @@ -2285,7 +2285,7 @@ void mch_msg(char *str)
* uses mch_errmsg() when started from the desktop.
* When not going to start the GUI also use stdout.
* On Mac, when started from Finder, stderr is the console. */
if (isatty(2)) {
if (os_isatty(2)) {
printf("%s", str);
return;
}
Expand Down

0 comments on commit a083983

Please sign in to comment.