Dont overwrite context lines if defined in file
This commit is contained in:
parent
b22fd30218
commit
378ad1e184
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ export const getOrMakeSearchEditorInput = (
|
|||
let config = { ...defaultConfig, ...priorConfig, ...existingData.config };
|
||||
|
||||
if (defaultNumberOfContextLines !== null && defaultNumberOfContextLines !== undefined) {
|
||||
config.contextLines = defaultNumberOfContextLines;
|
||||
config.contextLines = existingData.config.contextLines ?? defaultNumberOfContextLines;
|
||||
}
|
||||
|
||||
if (existingData.text) {
|
||||
|
|
Loading…
Reference in a new issue