From 77e4b7f90fbb7b1180795a79567685b0dce71d80 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 5 Dec 2013 17:39:31 -0800 Subject: [PATCH] Use value ivar when invisible.tab is falsy --- src/token.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/token.coffee b/src/token.coffee index bf2c26e33..5d4bff335 100644 --- a/src/token.coffee +++ b/src/token.coffee @@ -135,8 +135,8 @@ class Token classes = 'hard-tab' classes += ' indent-guide' if hasIndentGuide classes += ' invisible-character' if invisibles.tab - value = @value.replace(StartCharacterRegex, invisibles.tab) if invisibles.tab - html = "#{@escapeString(value)}" + value = if invisible.tab then @value.replace(StartCharacterRegex, invisibles.tab) else @value + html = "#{@escapeString(value)}" else startIndex = 0 endIndex = @value.length