bash_integration: Do not leak variable i

With shell-integration, the user would see the last value of this
variable (as set by the shell-integration script.

Fix this by making it local.
This commit is contained in:
Václav Kubernát 2023-05-03 18:35:30 +02:00
parent ea5634b3fd
commit a502e94950

View File

@ -80,7 +80,7 @@ _ksi_prompt=(
)
_ksi_main() {
builtin local ifs="$IFS"
builtin local ifs="$IFS" i
IFS=" "
for i in ${KITTY_SHELL_INTEGRATION[@]}; do
case "$i" in