# Fix adding a Python virtual environment, may duplicate the "open this dictionary" string when modifying content\. \(\#41840\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/25489c2b7a5a5dbcb53a33da19662a9b9c9810d8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 25489c2b7a5a5dbcb53a33da19662a9b9c9810d8

Requested commit: 25489c2b7a5a5dbcb53a33da19662a9b9c9810d8

Commit: 25489c2b7a5a5dbcb53a33da19662a9b9c9810d8

Tree: 91e0b41a05f6e8df5eee95160391c6c5d0a77185

Author: dDostalker

Committer: GitHub

## Message

```
Fix  adding a Python virtual environment, may duplicate the "open this dictionary" string when modifying content. (#41840)

Release Notes:

- Fixed an issue when adding a Python virtual environment that may cause
duplicate "open this dictionary" entries

- Trigger condition:
Type `C:\`, delete `\`, then repeatedly add `\`.

-Video

bug:

https://github.com/user-attachments/assets/f68008bb-9138-4451-a842-25b58574493b

fix:

https://github.com/user-attachments/assets/2913b8c2-adee-4275-af7e-e055fd78915f
```

## Parents

- [dc372e8a847f78ed253b7e409a8699f570eae1a7](https://git.cafe/gitcafe/zed/commit/dc372e8a847f78ed253b7e409a8699f570eae1a7?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/25489c2b7a5a5dbcb53a33da19662a9b9c9810d8?format=markdown)
