CodeMirror: indent with \t

Based on the discussion, the default indent unit should be `\t` instead of spaces.

Bug: T376351
Change-Id: Ib369501019e15c3d9bb7e83a6518c71896cecddc
This commit is contained in:
bhsd 2024-12-03 16:58:10 +08:00
parent c4baf83933
commit a91eb00b5d

View file

@ -13,6 +13,7 @@ const {
highlightSpecialChars,
history,
historyKeymap,
indentUnit,
keymap,
lineNumbers,
rectangularSelection,
@ -134,6 +135,7 @@ class CodeMirror {
this.dirExtension,
this.searchExtension,
this.preferences.extension,
indentUnit.of( '\t' ),
EditorState.readOnly.of( this.readOnly ),
EditorView.domEventHandlers( {
blur: () => {