Disable the "literal" option when regex search is enabled (#14936)

GitOrigin-RevId: 0710c60b517cfda19037215c076878c65c418396
This commit is contained in:
Alf Eaton
2023-09-28 08:04:40 +00:00
committed by Copybot
parent 67a4843560
commit c312c1a3f6
@@ -99,7 +99,7 @@ const CodeMirrorSearchForm: FC = () => {
replace: data.replace as string,
caseSensitive: data.caseSensitive === 'on',
regexp: data.regexp === 'on',
literal: true,
literal: data.regexp !== 'on',
wholeWord: data.wholeWord === 'on',
scope: getStoredSelection(view.state)?.ranges,
})