Default overdrawMargin to 15 even when passed as null from outside

This commit is contained in:
Nathan Sobo
2015-02-10 10:34:56 -07:00
parent 884556c200
commit 746950a347

View File

@@ -107,7 +107,6 @@ TextEditorComponent = React.createClass
getDefaultProps: ->
cursorBlinkPeriod: 800
cursorBlinkResumeDelay: 100
lineOverdrawMargin: 15
componentWillMount: ->
@props.editor.manageScrollPosition = true
@@ -115,6 +114,7 @@ TextEditorComponent = React.createClass
@setScrollSensitivity(atom.config.get('editor.scrollSensitivity'))
{editor, lineOverdrawMargin, cursorBlinkPeriod, cursorBlinkResumeDelay} = @props
lineOverdrawMargin ?= 15
@presenter = new TextEditorPresenter
model: editor