Vertical scrollbar height is updated when switching buffers

This commit is contained in:
Corey Johnson
2012-05-15 10:02:45 -07:00
parent facd7082d0
commit 6b3664a040
2 changed files with 11 additions and 1 deletions

View File

@@ -344,7 +344,9 @@ class Editor extends View
@buffer.on "path-change.editor#{@id}", => @trigger 'editor-path-change'
@renderer = new Renderer(@buffer, { maxLineLength: @calcMaxLineLength(), tabText: @tabText })
@renderLines() if @attached
if @attached
@prepareForVerticalScrolling()
@renderLines()
@loadEditSessionForBuffer(@buffer)