fix(ui): use tab width from .editorconfig when editing files (#11418)

Resolves #11411.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11418
Reviewed-by: limiting-factor <limiting-factor@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
Robert Wolff
2026-05-11 20:24:24 +02:00
committed by Gusted
parent cbaf97b867
commit efe52db86f
3 changed files with 18 additions and 6 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ export async function createCodemirror(
codemirrorAutocomplete.autocompletion(),
codemirrorCommands.history(),
tabSize.of(
codemirrorState.EditorState.tabSize.of(editorOpts.tabSize || 4),
codemirrorState.EditorState.tabSize.of(editorOpts.indentSize || 4),
),
wordWrap.of(
editorOpts.wordWrap ? codemirrorView.EditorView.lineWrapping : [],