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

GitOrigin-RevId: 0710c60b517cfda19037215c076878c65c418396
This commit is contained in:
Alf Eaton 2023-09-27 11:49:46 +01:00 committed by Copybot
parent d1cfc5a783
commit db76d1c316

View file

@ -99,7 +99,7 @@ const CodeMirrorSearchForm: FC = () => {
replace: data.replace as string, replace: data.replace as string,
caseSensitive: data.caseSensitive === 'on', caseSensitive: data.caseSensitive === 'on',
regexp: data.regexp === 'on', regexp: data.regexp === 'on',
literal: true, literal: data.regexp !== 'on',
wholeWord: data.wholeWord === 'on', wholeWord: data.wholeWord === 'on',
scope: getStoredSelection(view.state)?.ranges, scope: getStoredSelection(view.state)?.ranges,
}) })