Don’t apply line decorations to last line if it ends at column 0

This commit is contained in:
Nathan Sobo
2015-01-21 16:01:03 -07:00
parent 62a1210604
commit a513cf260c
2 changed files with 16 additions and 17 deletions

View File

@@ -108,9 +108,11 @@ class TextEditorPresenter
continue if properties.onlyNonEmpty
else
continue if properties.onlyEmpty
continue if row is range.end.row and range.end.column is 0
decorationClasses ?= []
decorationClasses.push(properties.class)
decorationClasses
setScrollTop: (@scrollTop) ->