Use last buffer row instead of last screen row to calculate gutter width.

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-06-02 09:24:27 -07:00
parent fd152ef2a9
commit 86316c2115

View File

@@ -19,4 +19,4 @@ class Gutter extends View
@div {class: 'line-number'}, if row == lastScreenRow then '' else row + 1
lastScreenRow = row
@lineNumbers.width(editor.getLastScreenRow().toString().length * editor.charWidth)
@lineNumbers.width(editor.buffer.getLastRow().toString().length * editor.charWidth)