Fix bug introduced when I resolved a conflict resolution.

This commit is contained in:
Corey Johnson
2012-03-07 11:41:52 -08:00
parent fdd8c7ad41
commit c258c2847e
2 changed files with 1 additions and 28 deletions

View File

@@ -130,7 +130,7 @@ class Cursor extends View
autoScrollHorizontally: (position) ->
return if @editor.softWrap
charsInView = @editor.width() / @width()
charsInView = @editor.lines.width() / @width()
maxScrollMargin = Math.floor((charsInView - 1) / 2)
scrollMargin = Math.min(@editor.hScrollMargin, maxScrollMargin)
margin = scrollMargin * @width()