From aeb5a84696b63def18be9d9631a22fd4b5d787b3 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 23 Apr 2014 17:04:20 -0600 Subject: [PATCH] Do render indent guides for tokens with leading whitespace --- src/editor-view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor-view.coffee b/src/editor-view.coffee index 45be2e1c4..b3467230f 100644 --- a/src/editor-view.coffee +++ b/src/editor-view.coffee @@ -1487,7 +1487,7 @@ class EditorView extends View position = 0 for token in tokens @updateScopeStack(line, scopeStack, token.scopes) - hasIndentGuide = not mini and showIndentGuide and lineIsWhitespaceOnly + hasIndentGuide = not mini and showIndentGuide and token.hasLeadingWhitespace or (token.hasTrailingWhitespace and lineIsWhitespaceOnly) line.push(token.getValueAsHtml({invisibles, hasIndentGuide})) position += token.value.length