mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-26 07:13:24 +03:00
GH-228 Add external parameter name
This commit is contained in:
parent
6e723ddeeb
commit
179bc3e03e
@ -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
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ extension AppDelegate {
|
||||
}
|
||||
|
||||
let url = panel.URLs[0]
|
||||
self.mainWindowManager.newMainWindow(url)
|
||||
self.mainWindowManager.newMainWindow(url: url)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user