From 86316c21157fb2c5154eab4849d3e34e9359487a Mon Sep 17 00:00:00 2001 From: Corey Johnson & Nathan Sobo Date: Sat, 2 Jun 2012 09:24:27 -0700 Subject: [PATCH] Use last buffer row instead of last screen row to calculate gutter width. --- src/app/gutter.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/gutter.coffee b/src/app/gutter.coffee index 04d0e9deb..2d3ddd88a 100644 --- a/src/app/gutter.coffee +++ b/src/app/gutter.coffee @@ -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)