mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 05:24:20 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user