1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-26 23:36:08 +03:00

GH-228 Add external parameter name

This commit is contained in:
Tae Won Ha 2016-08-11 22:50:44 +02:00
parent 6e723ddeeb
commit 179bc3e03e
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
4 changed files with 4 additions and 4 deletions

View File

@ -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
}

View File

@ -100,7 +100,7 @@ extension AppDelegate {
}
let url = panel.URLs[0]
self.mainWindowManager.newMainWindow(url)
self.mainWindowManager.newMainWindow(url: url)
}
}
}

View File

@ -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)
}
}

View File

@ -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