From 41fa919d5629e7b9abba06258422be4d9c250e7c Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Tue, 15 Aug 2017 16:22:00 +0200 Subject: [PATCH] =?UTF-8?q?GH-325=20Reformat=20slightly=CB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VimR/AppDelegateReducer.swift | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/VimR/AppDelegateReducer.swift b/VimR/AppDelegateReducer.swift index fba5261d..8da9addd 100644 --- a/VimR/AppDelegateReducer.swift +++ b/VimR/AppDelegateReducer.swift @@ -55,21 +55,22 @@ class AppDelegateReducer { cliPipePath: String? = nil) -> MainWindow.State { var mainWindow = state.mainWindowTemplate + mainWindow.uuid = UUID().uuidString + mainWindow.cwd = cwd mainWindow.isDirty = false + mainWindow.htmlPreview = HtmlPreviewState( htmlFile: nil, server: Marked(self.baseServerUrl.appendingPathComponent(HtmlPreviewToolReducer.selectFirstPath)) ) + mainWindow.preview.server = self.baseServerUrl.appendingPathComponent(MarkdownReducer.nonePath) + mainWindow.nvimArgs = nvimArgs mainWindow.cliPipePath = cliPipePath mainWindow.urlsToOpen = urls.toDict { _ in MainWindow.OpenMode.default } - mainWindow.cwd = cwd - - mainWindow.preview.server = self.baseServerUrl.appendingPathComponent(MarkdownReducer.nonePath) - return mainWindow } }