From 6d7fac2bf8eabd362397146e89c3641e9e2e8055 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 29 Oct 2012 09:48:44 -0700 Subject: [PATCH] :lipstick: --- spec/app/root-view-spec.coffee | 15 +++++++-------- src/app/root-view.coffee | 7 +++---- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/spec/app/root-view-spec.coffee b/spec/app/root-view-spec.coffee index e71a7f4fb..a3d4cdd52 100644 --- a/spec/app/root-view-spec.coffee +++ b/spec/app/root-view-spec.coffee @@ -717,11 +717,10 @@ describe "RootView", -> describe 'setInvisiblesMap', -> it 'sets the invisibles map to the supplied hash', -> - rootView.setInvisiblesMap { - eol: "¬", - space: "•", + rootView.setInvisiblesMap + eol: "¬" + space: "•" tab: "▸" - } it 'updates the display of all edit sessions with the new map', -> rootView.height(200) @@ -730,11 +729,11 @@ describe "RootView", -> rightEditor.setText(" \t ") leftEditor = rightEditor.splitLeft() - rootView.setInvisiblesMap { - eol: ";", - space: "_", + rootView.setInvisiblesMap + eol: ";" + space: "_" tab: "tab" - } + rootView.trigger "window:toggle-invisibles" expect(rightEditor.find(".line:first").text()).toBe "_tab _;" expect(leftEditor.find(".line:first").text()).toBe "_tab _;" diff --git a/src/app/root-view.coffee b/src/app/root-view.coffee index 26805aa05..1079718a8 100644 --- a/src/app/root-view.coffee +++ b/src/app/root-view.coffee @@ -31,11 +31,10 @@ class RootView extends View extensionStates: null fontSize: 20 showInvisibles: false - invisiblesMap: { - eol: "¬", - space: "•", + invisiblesMap: + eol: "¬" + space: "•" tab: "▸" - } initialize: (pathToOpen, { @extensionStates, suppressOpen } = {}) -> window.rootView = this