Add maxLineNumberDigits to presenter state

This commit is contained in:
Max Brunsfeld
2015-01-27 14:36:46 -08:00
committed by Nathan Sobo
parent 60fca8d8b2
commit 9cc7ecb1be
2 changed files with 10 additions and 0 deletions

View File

@@ -190,6 +190,7 @@ class TextEditorPresenter
@emitter.emit "did-update-state"
updateGutterState: ->
@state.gutter.maxLineNumberDigits = @model.getLineCount().toString().length
@state.gutter.backgroundColor = if @getGutterBackgroundColor() isnt "rgba(0, 0, 0, 0)"
@getGutterBackgroundColor()
else