Skip to content

Commit

Permalink
The getColumns check interferes with MGED+nirt. Should look at the ot…
Browse files Browse the repository at this point in the history
…her linenoise code to see what the differece is for this part.
  • Loading branch information
starseeker committed Nov 5, 2024
1 parent a486233 commit 71af129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libtermio/linenoise.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2642,7 +2642,7 @@ linenoiseState::linenoiseState(const char *prompt_str, int stdin_fd,
ofd = stdout_fd;
buf = wbuf;
prompt = (prompt_str) ? std::string(prompt_str) : std::string("> ");
cols = getColumns(ifd, ofd);
cols = (prompt_str) ? getColumns(ifd, ofd) : 80;

/* Buffer starts empty. */
buf[0] = '\0';
Expand Down

0 comments on commit 71af129

Please sign in to comment.