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