1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-25 23:02:35 +03:00

GH-226 Reformat

This commit is contained in:
Tae Won Ha 2016-08-03 22:33:33 +02:00
parent 8c7e7b8ca6
commit dcb31e895c
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -281,8 +281,7 @@ public class NeoVimView: NSView {
Int(floor((self.bounds.height - self.yOffset - (rect.origin.y + rect.size.height)) / cellHeight)), 0
)
let rowEnd = min(
Int(ceil((self.bounds.height - self.yOffset - rect.origin.y) / cellHeight)) - 1,
self.grid.size.height - 1
Int(ceil((self.bounds.height - self.yOffset - rect.origin.y) / cellHeight)) - 1, self.grid.size.height - 1
)
let columnStart = max(
Int(floor((rect.origin.x - self.xOffset) / cellWidth)), 0