mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Fix bug introduced when I resolved a conflict resolution.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user