From 7da588c3eebdef1352b70fb11b73b3a1cf40aa8e Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 29 Mar 2017 20:18:10 -0600 Subject: [PATCH] Ensure nextUpdateOnlyBlinksCursor argument is `true`, not just truthy We pass the bound scheduleUpdate method as an event handler to a variety of subscription methods, some of which supply arguments. --- src/text-editor-component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text-editor-component.js b/src/text-editor-component.js index e35fb9733..9dc738d08 100644 --- a/src/text-editor-component.js +++ b/src/text-editor-component.js @@ -126,7 +126,7 @@ class TextEditorComponent { if (!this.visible) return this.nextUpdateOnlyBlinksCursors = - this.nextUpdateOnlyBlinksCursors !== false && nextUpdateOnlyBlinksCursors + this.nextUpdateOnlyBlinksCursors !== false && nextUpdateOnlyBlinksCursors === true if (this.updatedSynchronously) { this.updateSync()