Skip to content

Commit

Permalink
[readline] always create an ncdirect #151
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Oct 12, 2021
1 parent 5862357 commit abd6f3b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/readline/readline.c
Original file line number Diff line number Diff line change
Expand Up @@ -2170,13 +2170,11 @@ int main(int argc, char * const *argv){
if(growlight_init(argc, argv, &ui, NULL)){
return EXIT_FAILURE;
}
if(isatty(STDOUT_FILENO)){
const uint64_t flags = NCDIRECT_OPTION_INHIBIT_SETLOCALE;
if((ncd = ncdirect_init(NULL, NULL, flags)) == NULL){
fprintf(stderr, "Couldn't set up notcurses\n");
growlight_stop();
return EXIT_FAILURE;
}
const uint64_t flags = NCDIRECT_OPTION_INHIBIT_SETLOCALE;
if((ncd = ncdirect_init(NULL, NULL, flags)) == NULL){
fprintf(stderr, "Couldn't set up notcurses\n");
growlight_stop();
return EXIT_FAILURE;
}
if(tty_ui()){
growlight_stop();
Expand Down

0 comments on commit abd6f3b

Please sign in to comment.