Fix typing text color in split editor (fix #1055)

This commit is contained in:
1024jp 2020-05-16 10:40:10 +09:00
parent d62a14e775
commit 361a90f03a
4 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,7 @@ Change Log
- Fix an issue with multiple cursors where just a single UTF-16 character was deleted instead of the whole character when the character to delete consists of multiple UTF-16 characters.
- Fix an issue with scripting with AppleScript/JXA where the `line range` command selected a wrong range when the line endings of the document are CRLF.
- Fix an issue with scripting with AppleScript/JXA where selecting a single line by specifying a single integer argument to `line range` did not work.
- Fix an issue where the theme color was not applied to the color of typed text in split view.
- Fix missing localization.
- [beta] Fix an issue in the editor where lines were initially wrapped at the wrong position when the text orientation is vertical and overscrolling is enabled.

View File

@ -85,6 +85,7 @@
<li>Fix an issue with scripting with AppleScript/JXA where the <code>line range</code> command selected a wrong range when the line endings of the document are CRLF.</li>
<li>Fix an issue with scripting with AppleScript/JXA where selecting a single line by specifying a single integer argument to <code>line range</code> did not work.</li>
<li>Fix an issue in the editor where lines were initially wrapped at the wrong position when the text orientation is vertical.</li>
<li>Fix an issue where the theme color was not applied to the color of typed text in split view.</li>
<li>Fix an issue in the RTL text mode where the page guide disappeared when lines are unwrapped.</li>
<li>Fix an issue where the current line highlight did not update properly after changing some settings.</li>
<li>Fix an issue in the find panel's input fields where invisible control characters were drawn in the normal text color under specific conditions.</li>

View File

@ -85,6 +85,7 @@
<li>改行コードがCRLFの書類で<code>line range</code>コマンドを用いて行を選択すると選択範囲がずれたAppleScript/JXAの不具合を修正</li>
<li><code>line range</code>コマンドの引数に整数値を渡して1行だけを選択しようとすると無視されたAppleScript/JXAの不具合を修正</li>
<li>縦書き表示で書類を開くとウインドウ端でない位置で行が折り返された不具合を修正</li>
<li>分割されたビューに入力したテキストにテーマの色が反映されていなかった不具合を修正</li>
<li>右から左の文章方向で行を折り返していないとページガイドが表示されなかった不具合を修正</li>
<li>表示設定を変更したあとに現在行のハイライト位置が正しく更新されないことがあった不具合を修正</li>
<li>特定の条件下で不可視文字が通常の文字色で描画されることがあった検索パネルの入力欄の不具合を修正</li>

View File

@ -972,6 +972,7 @@ final class DocumentViewController: NSSplitViewController, SyntaxParserDelegate,
// copy textView states
if let baseTextView = baseViewController?.textView, let textView = editorViewController.textView {
textView.typingAttributes = baseTextView.typingAttributes
textView.font = baseTextView.font
textView.theme = baseTextView.theme
textView.tabWidth = baseTextView.tabWidth