mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Handle missing state field in line wrapping indentation extension (#35442)
GitOrigin-RevId: 7cc03042c42fbc4afe14438cd9347da7682815c6
This commit is contained in:
+2
-1
@@ -48,7 +48,8 @@ export const lineWrappingIndentation = (visual: boolean) => {
|
||||
)
|
||||
},
|
||||
write(value: number, view: EditorView) {
|
||||
if (view.state.field(field) !== value) {
|
||||
const stateValue = view.state.field(field, false)
|
||||
if (stateValue !== undefined && stateValue !== value) {
|
||||
window.setTimeout(() => {
|
||||
view.dispatch({
|
||||
effects: setMaxIndentEffect.of(value),
|
||||
|
||||
Reference in New Issue
Block a user