mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Don’t decorate soft-wrapped lines/line numbers unless spanned by marker
This commit is contained in:
@@ -251,6 +251,7 @@ class TextEditorPresenter
|
||||
properties = decoration.getProperties()
|
||||
range = decoration.getMarker().getScreenRange()
|
||||
|
||||
continue unless range.intersectsRow(row)
|
||||
if range.isEmpty()
|
||||
continue if properties.onlyNonEmpty
|
||||
else
|
||||
@@ -271,6 +272,7 @@ class TextEditorPresenter
|
||||
properties = decoration.getProperties()
|
||||
range = decoration.getMarker().getScreenRange()
|
||||
|
||||
continue unless range.intersectsRow(row)
|
||||
if range.isEmpty()
|
||||
continue if properties.onlyNonEmpty
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user