diff options
author | Giteabot <teabot@gitea.io> | 2023-05-02 16:58:11 -0400 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2023-05-02 23:29:38 -0400 |
commit | 73e70f3c44108a8f581b3a18fcbc45a8d693e8b8 (patch) | |
tree | 1459edc563ad67371cc95be52941e7c13f26f4e8 | |
parent | 499257d81ee6557c156d6c162d453aedc8d7f6f4 (diff) | |
download | gitea-73e70f3c44108a8f581b3a18fcbc45a8d693e8b8.tar.gz gitea-73e70f3c44108a8f581b3a18fcbc45a8d693e8b8.zip |
Enable whitespace rendering on selection in Monaco (#24444) (#24485)
Backport #24444 by @silverwind
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: silverwind <me@silverwind.io>
-rw-r--r-- | web_src/js/features/codeeditor.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/web_src/js/features/codeeditor.js b/web_src/js/features/codeeditor.js index 23a26ba2b0..c6d55908f3 100644 --- a/web_src/js/features/codeeditor.js +++ b/web_src/js/features/codeeditor.js @@ -13,7 +13,6 @@ const baseOptions = { overviewRulerLanes: 0, renderLineHighlight: 'all', renderLineHighlightOnlyWhenFocus: true, - renderWhitespace: 'none', rulers: false, scrollbar: {horizontalScrollbarSize: 6, verticalScrollbarSize: 6}, scrollBeyondLastLine: false, |