From 3371ceadf377c49ce51bfae81011c24094dbbe72 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 25 Aug 2014 18:03:32 -0600 Subject: [PATCH] Add regression coverage for remeasuring characters w/ requested update The problem here is that the lines in the editor no longer reflect the lines on screen, but we're looking for line nodes corresponding to the editor's current contents. --- spec/editor-component-spec.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/editor-component-spec.coffee b/spec/editor-component-spec.coffee index dba6d3a17..d80396d23 100644 --- a/spec/editor-component-spec.coffee +++ b/spec/editor-component-spec.coffee @@ -1953,6 +1953,7 @@ describe "EditorComponent", -> wrapperView.hide() component.setFontSize(22) + editor.getBuffer().insert([0, 0], 'a') # regression test against atom/atom#3318 wrapperView.show() editor.setCursorBufferPosition([0, Infinity])