diff --git a/src/editor-component.coffee b/src/editor-component.coffee index edca56a65..d278905ac 100644 --- a/src/editor-component.coffee +++ b/src/editor-component.coffee @@ -41,7 +41,7 @@ EditorComponent = React.createClass render: -> {focused, fontSize, lineHeight, fontFamily, showIndentGuide, showInvisibles, visible} = @state {editor, cursorBlinkPeriod, cursorBlinkResumeDelay} = @props - maxLineNumberDigits = editor.getScreenLineCount().toString().length + maxLineNumberDigits = editor.getLineCount().toString().length invisibles = if showInvisibles then @state.invisibles else {} hasSelection = editor.getSelection()? and !editor.getSelection().isEmpty()