mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-24 11:37:32 +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 {
|
extension NeoVimView {
|
||||||
|
|
||||||
public func syncNeoVimWithBounds() {
|
|
||||||
self.resizeNeoVimUi(to: self.bounds.size)
|
|
||||||
}
|
|
||||||
|
|
||||||
public func enterResizeMode() {
|
public func enterResizeMode() {
|
||||||
self.currentlyResizing = true
|
self.currentlyResizing = true
|
||||||
self.needsDisplay = true
|
self.needsDisplay = true
|
||||||
|
@ -10,11 +10,6 @@ extension NeoVimView {
|
|||||||
override public func setFrameSize(_ newSize: NSSize) {
|
override public func setFrameSize(_ newSize: NSSize) {
|
||||||
super.setFrameSize(newSize)
|
super.setFrameSize(newSize)
|
||||||
|
|
||||||
// initial resizing is done when grid has data
|
|
||||||
guard self.grid.hasData else {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if self.inLiveResize || self.currentlyResizing {
|
if self.inLiveResize || self.currentlyResizing {
|
||||||
// TODO: Turn off live resizing for now.
|
// TODO: Turn off live resizing for now.
|
||||||
// self.resizeNeoVimUi(to: newSize)
|
// self.resizeNeoVimUi(to: newSize)
|
||||||
|
@ -234,7 +234,6 @@ class MainWindow: NSObject,
|
|||||||
self.open(urls: state.urlsToOpen)
|
self.open(urls: state.urlsToOpen)
|
||||||
|
|
||||||
self.window.makeFirstResponder(self.neoVimView)
|
self.window.makeFirstResponder(self.neoVimView)
|
||||||
self.neoVimView.syncNeoVimWithBounds()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func show() {
|
func show() {
|
||||||
|
Loading…
Reference in New Issue
Block a user