mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-24 03:25:03 +03:00
GH-423 Remove unnec' method syncNeoVimViewWithBounds
This commit is contained in:
parent
f3366bfc9b
commit
4547ed8c7f
@ -7,10 +7,6 @@ import Cocoa
|
||||
|
||||
extension NeoVimView {
|
||||
|
||||
public func syncNeoVimWithBounds() {
|
||||
self.resizeNeoVimUi(to: self.bounds.size)
|
||||
}
|
||||
|
||||
public func enterResizeMode() {
|
||||
self.currentlyResizing = true
|
||||
self.needsDisplay = true
|
||||
|
@ -10,11 +10,6 @@ extension NeoVimView {
|
||||
override public func setFrameSize(_ newSize: NSSize) {
|
||||
super.setFrameSize(newSize)
|
||||
|
||||
// initial resizing is done when grid has data
|
||||
guard self.grid.hasData else {
|
||||
return
|
||||
}
|
||||
|
||||
if self.inLiveResize || self.currentlyResizing {
|
||||
// TODO: Turn off live resizing for now.
|
||||
// self.resizeNeoVimUi(to: newSize)
|
||||
|
@ -234,7 +234,6 @@ class MainWindow: NSObject,
|
||||
self.open(urls: state.urlsToOpen)
|
||||
|
||||
self.window.makeFirstResponder(self.neoVimView)
|
||||
self.neoVimView.syncNeoVimWithBounds()
|
||||
}
|
||||
|
||||
func show() {
|
||||
|
Loading…
Reference in New Issue
Block a user