Fix syntax highlight while typing (fix #869)

This commit is contained in:
1024jp 2018-11-19 15:42:00 +09:00
parent 6240d93710
commit d786c1ae37
6 changed files with 44 additions and 1 deletions

View File

@ -2,6 +2,15 @@
Change Log
==========================
3.6.6 (298)
--------------------------
### Fixes
- Fix an issue on CotEditor 3.6.5 where the syntax highlight did not update while typing.
3.6.5 (297)
--------------------------

View File

@ -21,6 +21,23 @@
<h1>Release Notes</h1>
<article>
<header>
<h1>CotEditor 3.6.6</h1>
<p>release: <time>2018-11-20</time></p>
</header>
<section>
<h2>Fixes</h2>
<ul>
<li>Fix an issue on CotEditor 3.6.5 where the syntax highlight did not update while typing.</li>
</ul>
</section>
</article>
<article>
<header>
<h1>CotEditor 3.6.5</h1>

View File

@ -21,6 +21,23 @@
<h1>リリースノート</h1>
<article>
<header>
<h1>CotEditor 3.6.6</h1>
<p>リリース: <time>2018-11-20</time></p>
</header>
<section>
<h2>修正</h2>
<ul>
<li>シンタックスハイライトがタイプ中に更新されないCotEditor 3.6.5での不具合を修正</li>
</ul>
</section>
</article>
<article>
<header>
<h1>CotEditor 3.6.5</h1>

View File

@ -343,7 +343,7 @@ final class DocumentViewController: NSSplitViewController, NSMenuItemValidation,
textStorage.editedMask.contains(.editedCharacters) else { return }
// don't update when input text is not yet fixed.
guard self.focusedTextView?.hasMarkedText() != false else { return }
guard self.focusedTextView?.hasMarkedText() != true else { return }
// update editor information
// -> In case, if "Replace All" performed without moving caret.