mirror of
https://github.com/atom/atom.git
synced 2026-02-16 17:45:24 -05:00
Don't show indent guide in truly trailing whitespace
Lines that are all whitespace are considered trailing whitespace and should display the indent guide. But lines with leading and trailing whitespace should never have the indent guide rendered in the trailing area.
This commit is contained in:
@@ -92,7 +92,7 @@ class Token
|
||||
"<span class='#{classes}'>#{match}</span>"
|
||||
if hasTrailingWhitespace
|
||||
classes = []
|
||||
classes.push('indent-guide') if hasIndentGuide
|
||||
classes.push('indent-guide') if hasIndentGuide and not hasLeadingWhitespace
|
||||
classes.push('invisible-character') if invisibles.space
|
||||
classes.push('trailing-whitespace')
|
||||
classes = classes.join(' ')
|
||||
|
||||
Reference in New Issue
Block a user