mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Update also @startRow and @endRow on getState
This commit is contained in:
@@ -61,6 +61,7 @@ class TextEditorPresenter
|
||||
@[flagName] = true
|
||||
else
|
||||
fn.apply(this)
|
||||
@[flagName] = false
|
||||
|
||||
@emitDidUpdateState()
|
||||
|
||||
@@ -69,6 +70,11 @@ class TextEditorPresenter
|
||||
getState: ->
|
||||
@updating = true
|
||||
|
||||
@updateContentDimensions()
|
||||
@updateScrollbarDimensions()
|
||||
@updateStartRow()
|
||||
@updateEndRow()
|
||||
|
||||
@updateFocusedState() if @shouldUpdateFocusedState
|
||||
@updateHeightState() if @shouldUpdateHeightState
|
||||
@updateVerticalScrollState() if @shouldUpdateVerticalScrollState
|
||||
@@ -83,20 +89,6 @@ class TextEditorPresenter
|
||||
@updateGutterState() if @shouldUpdateGutterState
|
||||
@updateLineNumbersState() if @shouldUpdateLineNumbersState
|
||||
|
||||
@shouldUpdateFocusedState = false
|
||||
@shouldUpdateHeightState = false
|
||||
@shouldUpdateVerticalScrollState = false
|
||||
@shouldUpdateHorizontalScrollState = false
|
||||
@shouldUpdateScrollbarsState = false
|
||||
@shouldUpdateHiddenInputState = false
|
||||
@shouldUpdateContentState = false
|
||||
@shouldUpdateDecorations = false
|
||||
@shouldUpdateLinesState = false
|
||||
@shouldUpdateCursorsState = false
|
||||
@shouldUpdateOverlaysState = false
|
||||
@shouldUpdateGutterState = false
|
||||
@shouldUpdateLineNumbersState = false
|
||||
|
||||
@updating = false
|
||||
|
||||
@state
|
||||
|
||||
Reference in New Issue
Block a user