Skip to content

Commit

Permalink
Fix Ctrl-C behavior within the Readline prompt (jonas#1342)
Browse files Browse the repository at this point in the history
[tk: fixed regression with the `Enter` key]
  • Loading branch information
intelfx authored and koutcher committed Jun 20, 2024
1 parent 37ccb67 commit c6899e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ master
Bug fixes:

- Fix various issues with `diff.noprefix` and `--no-prefix`.
- Fix `Ctrl-C` behavior within the Readline prompt. (#1342)

Improvements:

Expand Down
1 change: 1 addition & 0 deletions src/prompt.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ read_prompt(const char *prompt)
curs_set(1);
if (signal(SIGINT, sigint_absorb_handler) == SIG_ERR)
die("Failed to setup sigint handler");
noraw();
cbreak();
line = readline(prompt);
raw();
Expand Down

0 comments on commit c6899e9

Please sign in to comment.