mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add maxLineNumberDigits to presenter state
This commit is contained in:
committed by
Nathan Sobo
parent
60fca8d8b2
commit
9cc7ecb1be
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user