From ed537fd61a810041a5a279f1fb696a5e28518305 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 2 Mar 2017 10:45:14 -0700 Subject: [PATCH] Drop suppressLayerUpdateEvent flag We now emit marker layer update events synchronously at the end of transactions, so this isn't needed or supported by text-buffer. --- src/text-editor.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text-editor.coffee b/src/text-editor.coffee index f66159a01..737e33ed9 100644 --- a/src/text-editor.coffee +++ b/src/text-editor.coffee @@ -210,7 +210,7 @@ class TextEditor extends Model if @cursors.length is 0 and not suppressCursorCreation initialLine = Math.max(parseInt(initialLine) or 0, 0) initialColumn = Math.max(parseInt(initialColumn) or 0, 0) - @addCursorAtBufferPosition([initialLine, initialColumn], {suppressLayerUpdateEvent: true}) + @addCursorAtBufferPosition([initialLine, initialColumn]) @languageMode = new LanguageMode(this)