Web Inspector: CodeMirror still inserts a tab even when "Prefer indent using" is...
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Aug 2019 19:32:14 +0000 (19:32 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Aug 2019 19:32:14 +0000 (19:32 +0000)
commit04a2e797441fb1710c111f96bbc86d0d82ddd828
tree0cebd662c1429f52d47844417ab629614f760636
parent0cfa226f9976e5f59b5be33241fe69bd3ea01d01
Web Inspector: CodeMirror still inserts a tab even when "Prefer indent using" is set to "Spaces"
https://bugs.webkit.org/show_bug.cgi?id=200770

Reviewed by Ross Kirsling.

* UserInterface/Views/CodeMirrorAdditions.js:
Remap the `insertTab` command to use `insertSoftTab` when "Prefer indent using" is set to
"Spaces" so that CodeMirror inserts the number of spaces that would match a tab ("\t") being
inserted at the same spot.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/CodeMirrorAdditions.js