From e14219a7694992887fec745802578b3cd1f7d04d Mon Sep 17 00:00:00 2001 From: TomfromBerlin Date: Mon, 23 Mar 2026 23:35:23 +0100 Subject: [PATCH] Make Ctrl+C work - 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' --- functions/zramdisk_create | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/zramdisk_create b/functions/zramdisk_create index 2ea71a5..d189da7 100644 --- a/functions/zramdisk_create +++ b/functions/zramdisk_create @@ -50,7 +50,7 @@ zramdisk_debug " ${ZRAMDISK_COLOR_CYAN}zramdisk_create:${ZRAMDISK_COLOR_NC} Reac "${msg[@]}" return 1 } - read -sk 1 + read -sk 1 || return 1 zramdisk_create_disk }