Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix readline ignores Ctrl-C on macOS (#1347) #1348

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/prompt.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,13 @@ readline_init(void)
/* Let ncurses deal with the LINES and COLUMNS environment variables */
rl_change_environment = 0;
rl_catch_sigwinch = 0;
/* Fix “Piping to tig segfaults on exit” (#893),
* except on macOS inhibits `readline()` Ctrl-C.
*/
#ifndef __APPLE__
rl_deprep_term_function = NULL;
rl_prep_term_function = NULL;
#endif
}

static void sigint_absorb_handler(int sig) {
Expand Down