mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-26 15:25:14 +03:00
GH-226 Reformat
This commit is contained in:
parent
8c7e7b8ca6
commit
dcb31e895c
@ -281,8 +281,7 @@ public class NeoVimView: NSView {
|
|||||||
Int(floor((self.bounds.height - self.yOffset - (rect.origin.y + rect.size.height)) / cellHeight)), 0
|
Int(floor((self.bounds.height - self.yOffset - (rect.origin.y + rect.size.height)) / cellHeight)), 0
|
||||||
)
|
)
|
||||||
let rowEnd = min(
|
let rowEnd = min(
|
||||||
Int(ceil((self.bounds.height - self.yOffset - rect.origin.y) / cellHeight)) - 1,
|
Int(ceil((self.bounds.height - self.yOffset - rect.origin.y) / cellHeight)) - 1, self.grid.size.height - 1
|
||||||
self.grid.size.height - 1
|
|
||||||
)
|
)
|
||||||
let columnStart = max(
|
let columnStart = max(
|
||||||
Int(floor((rect.origin.x - self.xOffset) / cellWidth)), 0
|
Int(floor((rect.origin.x - self.xOffset) / cellWidth)), 0
|
||||||
|
Loading…
Reference in New Issue
Block a user