Fix applying font state to split view

This commit is contained in:
1024jp 2022-03-30 18:10:58 +09:00
parent 8c6ce305e3
commit cb3f4ba9f3
2 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,7 @@ Change Log
### Fixes
- Fix an issue that the split view did not inherit the writing direction.
- Fix an issue that the split view did not inherit the font style and the writing direction.
- Fix an issue that the incompatible character pane did not show the message “No incompatible characters were found.” when all of the existing incompatible characters are cleared.

View File

@ -977,6 +977,8 @@ final class DocumentViewController: NSSplitViewController, ThemeHolder, NSTextSt
// copy textView states
if let baseTextView = baseViewController?.textView, let textView = editorViewController.textView {
textView.font = baseTextView.font
textView.usesAntialias = baseTextView.usesAntialias
textView.ligature = baseTextView.ligature
textView.theme = baseTextView.theme
textView.tabWidth = baseTextView.tabWidth
textView.isAutomaticTabExpansionEnabled = baseTextView.isAutomaticTabExpansionEnabled