summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/codeeditor.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-05-02 15:31:38 +0200
committerGitHub <noreply@github.com>2023-05-02 09:31:38 -0400
commit1f52560ca466a780638543d4cd3513f892bf7522 (patch)
tree01ac663d5e47c1ede05cddacb06c64eacca9cccc /web_src/js/features/codeeditor.js
parentd6f82384920e16ead14dd916fa38d49281678a35 (diff)
downloadgitea-1f52560ca466a780638543d4cd3513f892bf7522.tar.gz
gitea-1f52560ca466a780638543d4cd3513f892bf7522.zip
Enable whitespace rendering on selection in Monaco (#24444)
Remove the [renderWhitespace](https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IEditorOptions.html#renderWhitespace) override, so the default value of `selection` takes over and makes whitespace visible on selection. <img width="128" alt="Screenshot 2023-04-30 at 19 09 41" src="https://user-images.githubusercontent.com/115237/235366707-d598268d-03cc-4839-a195-c460bddae99b.png"> Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'web_src/js/features/codeeditor.js')
-rw-r--r--web_src/js/features/codeeditor.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/web_src/js/features/codeeditor.js b/web_src/js/features/codeeditor.js
index f003933262..3b01b93a80 100644
--- a/web_src/js/features/codeeditor.js
+++ b/web_src/js/features/codeeditor.js
@@ -14,7 +14,6 @@ const baseOptions = {
overviewRulerLanes: 0,
renderLineHighlight: 'all',
renderLineHighlightOnlyWhenFocus: true,
- renderWhitespace: 'none',
rulers: false,
scrollbar: {horizontalScrollbarSize: 6, verticalScrollbarSize: 6},
scrollBeyondLastLine: false,