From 179bc3e03e88bc4bfcafb3e2d9feb38746f9eb6f Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Thu, 11 Aug 2016 22:50:44 +0200 Subject: [PATCH] GH-228 Add external parameter name --- SwiftNeoVim/NeoVimView.swift | 2 +- VimR/AppDelegate.swift | 2 +- VimR/MainWindowComponent.swift | 2 +- VimR/MainWindowManager.swift | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SwiftNeoVim/NeoVimView.swift b/SwiftNeoVim/NeoVimView.swift index 283e3494..ebee4bbe 100644 --- a/SwiftNeoVim/NeoVimView.swift +++ b/SwiftNeoVim/NeoVimView.swift @@ -229,7 +229,7 @@ public class NeoVimView: NSView, NSUserInterfaceValidations { } } - public func open(url: NSURL) { + public func open(url url: NSURL) { guard let path = url.path else { return } diff --git a/VimR/AppDelegate.swift b/VimR/AppDelegate.swift index 6355e125..436f5399 100644 --- a/VimR/AppDelegate.swift +++ b/VimR/AppDelegate.swift @@ -100,7 +100,7 @@ extension AppDelegate { } let url = panel.URLs[0] - self.mainWindowManager.newMainWindow(url) + self.mainWindowManager.newMainWindow(url: url) } } } diff --git a/VimR/MainWindowComponent.swift b/VimR/MainWindowComponent.swift index be19444f..7873aac5 100644 --- a/VimR/MainWindowComponent.swift +++ b/VimR/MainWindowComponent.swift @@ -135,7 +135,7 @@ extension MainWindowComponent { self.neoVimView.usesLigatures = self.usesLigatures if let url = self.urlToBeOpenedWhenReady { - self.neoVimView.open(url) + self.neoVimView.open(url: url) } } diff --git a/VimR/MainWindowManager.swift b/VimR/MainWindowManager.swift index 4d64ccf5..c64df964 100644 --- a/VimR/MainWindowManager.swift +++ b/VimR/MainWindowManager.swift @@ -22,7 +22,7 @@ class MainWindowManager { self.addReactions() } - func newMainWindow(url: NSURL? = nil) -> MainWindowComponent { + func newMainWindow(url url: NSURL? = nil) -> MainWindowComponent { let mainWindowComponent = MainWindowComponent(source: self.source, manager: self, url: url, initialData: self.data) self.mainWindowComponents[mainWindowComponent.uuid] = mainWindowComponent return mainWindowComponent