Fix tabWidth setting updating

This commit is contained in:
1024jp 2020-02-04 22:18:58 +09:00
parent 74326d215f
commit 57f895dabd
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ Change Log
### Fixes
- Fix an issue where the Unicode code point field in the document inspector displayed always “not selected.”
- Fix an issue where the editor's line height in the opened windows did not update even the setting is changed.
- Fix an issue where the editor's line height and tab width in the opened windows did not update even the setting is changed.
- Improve stability.

View File

@ -1143,7 +1143,7 @@ final class EditorTextView: NSTextView, Themable, CurrentLineHighlighting, Multi
@objc var tabWidth: Int {
didSet {
tabWidth = max(oldValue, 0)
tabWidth = max(tabWidth, 0)
guard tabWidth != oldValue else { return }