You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the search keymap enabled, selecting text that appears multiple times then pressing ctrl+d selects all occurrences of that text, even when EditorState.allowMultipleSelections.of(false) is provided as an extension.
Steps to reproduce:
Open the linked example
Select test
Press ctrl+d
Type replaced
Comment out drawSelection()
Re-run
Repeat steps 1-4
After step 4 (both times), both occurrences of test are replaced with replaced.
allowMultipleSelections is enabled when any extension enables it. So if it is already there, adding another value of false to your configuration will not change anything.
Describe the issue
With the search keymap enabled, selecting text that appears multiple times then pressing ctrl+d selects all occurrences of that text, even when
EditorState.allowMultipleSelections.of(false)
is provided as an extension.Steps to reproduce:
test
replaced
drawSelection()
After step 4 (both times), both occurrences of
test
are replaced withreplaced
.Browser and platform
Firefox 119.0, Ubuntu 23.10
Reproduction link
https://codemirror.net/try/?c=aW1wb3J0IHtFZGl0b3JTdGF0ZX0gZnJvbSAiQGNvZGVtaXJyb3Ivc3RhdGUiCmltcG9ydCB7ZHJhd1NlbGVjdGlvbiwgRWRpdG9yVmlldywga2V5bWFwLCBoaWdobGlnaHRTcGVjaWFsQ2hhcnN9IGZyb20gIkBjb2RlbWlycm9yL3ZpZXciCmltcG9ydCB7IHNlYXJjaCwgc2VhcmNoS2V5bWFwLCBoaWdobGlnaHRTZWxlY3Rpb25NYXRjaGVzIH0gZnJvbSAnQGNvZGVtaXJyb3Ivc2VhcmNoJwoKCm5ldyBFZGl0b3JWaWV3KHsKICBkb2M6ICJ0ZXN0IHRlc3QiLAogIGV4dGVuc2lvbnM6IFsKICAgIGRyYXdTZWxlY3Rpb24oKSwKICAgIEVkaXRvclN0YXRlLmFsbG93TXVsdGlwbGVTZWxlY3Rpb25zLm9mKGZhbHNlKSwKICAgIHNlYXJjaCgpLAogICAga2V5bWFwLm9mKFsKICAgICAgLi4uc2VhcmNoS2V5bWFwCiAgICBdKQogIF0sCiAgcGFyZW50OiBkb2N1bWVudC5ib2R5Cn0pCg==
The text was updated successfully, but these errors were encountered: