From 3aae7bb77efbcdb10a7c5160525f17d857fc6d34 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Thu, 3 Oct 2013 17:55:58 -0700 Subject: [PATCH] :lipstick: --- src/editor.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/editor.coffee b/src/editor.coffee index 62e65f5fa..4ced66eea 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -1557,7 +1557,7 @@ class Editor extends View for char in token.value return left if index >= column - val = @checkCharacterWidthCache(token.scopes, char) + val = @getCharacterWidthCache(token.scopes, char) if val? left += val else @@ -1590,7 +1590,7 @@ class Editor extends View oldLeft = left scopes = @scopesForColumn(tokenizedLine, index) - cachedVal = @checkCharacterWidthCache(scopes, char) + cachedVal = @getCharacterWidthCache(scopes, char) if cachedVal? left = oldLeft + cachedVal @@ -1608,7 +1608,7 @@ class Editor extends View returnLeft ? left - checkCharacterWidthCache: (scopes, char) -> + getCharacterWidthCache: (scopes, char) -> scopes ?= NoScope obj = Editor.characterWidthCache for scope in scopes @@ -1746,7 +1746,7 @@ class Editor extends View scopeStack.push(scope) line.push("") - @popScope: (line, scopeStack)-> + @popScope: (line, scopeStack) -> scopeStack.pop() line.push("")