Skip to content

Make Ctrl+C work#8

Merged
TomfromBerlin merged 1 commit intomainfrom
TomfromBerlin-patch-4
Mar 23, 2026
Merged

Make Ctrl+C work#8
TomfromBerlin merged 1 commit intomainfrom
TomfromBerlin-patch-4

Conversation

@TomfromBerlin
Copy link
Copy Markdown
Owner

  • zsh-autocomplete defines its own TRAPINT() function in a global scope. That is, every other TRAPINT() function defined by the user or other plugins will be overwritten immediately, when autocomplete is active. This leads to unexpected and had to trace behavior, e.g. if there is a 'read -sk1' and Ctrl+C is pressed, strange error messages appear. The work around is 'read -sk1 || return 1'

- zsh-autocomplete defines its own TRAPINT() function in a global scope. That is, every other TRAPINT() function defined by the user or other plugins will be overwritten immediately, when autocomplete is active. This leads to unexpected and had to trace behavior, e.g. if there is a 'read -sk1' and Ctrl+C is pressed, strange error messages appear. The work around is 'read -sk1 || return 1'
@TomfromBerlin TomfromBerlin self-assigned this Mar 23, 2026
@TomfromBerlin TomfromBerlin merged commit fe18bba into main Mar 23, 2026
1 check passed
@TomfromBerlin TomfromBerlin deleted the TomfromBerlin-patch-4 branch March 23, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant