Skip to content

Commit

Permalink
fix softWrapAtPreferredLineLength bug, #256
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Feb 8, 2015
1 parent 56a5d5e commit 1b0eba4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/minimap-element.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -320,14 +320,14 @@ class MinimapElement extends HTMLElement
if @adjustToSoftWrap
lineLength = atom.config.get('editor.preferredLineLength')
softWrap = atom.config.get('editor.softWrap')
softWrapAtPreferredLineLength = atom.config.get('editor.softWrapAtPreferredLineLength')
width = lineLength * @minimap.getCharWidth()

if softWrap and lineLength and width < @width
if softWrap && softWrapAtPreferredLineLength and lineLength and width < @width
@marginRight = width - @width
canvasWidth = width
else
@marginRight = null

canvasWidth = width
else
delete @marginRight

Expand Down

0 comments on commit 1b0eba4

Please sign in to comment.