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:
parent
ea5634b3fd
commit
a502e94950
@ -80,7 +80,7 @@ _ksi_prompt=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
_ksi_main() {
|
_ksi_main() {
|
||||||
builtin local ifs="$IFS"
|
builtin local ifs="$IFS" i
|
||||||
IFS=" "
|
IFS=" "
|
||||||
for i in ${KITTY_SHELL_INTEGRATION[@]}; do
|
for i in ${KITTY_SHELL_INTEGRATION[@]}; do
|
||||||
case "$i" in
|
case "$i" in
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user