1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-26 15:25:14 +03:00

Add a comment

This commit is contained in:
Tae Won Ha 2016-06-29 18:32:33 +02:00
parent 7358243b07
commit 903f72b542
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -111,9 +111,9 @@ public class NeoVimView: NSView {
let dirtyRects = self.rectsBeingDrawn() let dirtyRects = self.rectsBeingDrawn()
// Swift.print(self.grid)
self.rowRunIntersecting(rects: dirtyRects).forEach { rowFrag in self.rowRunIntersecting(rects: dirtyRects).forEach { rowFrag in
// For background drawing we don't filter out the put(0, 0)s: in some cases only the put(0, 0)-cells should be
// redrawn.
self.drawBackground(positions: rowFrag.range.map { self.positionOnView(rowFrag.row, column: $0) }, self.drawBackground(positions: rowFrag.range.map { self.positionOnView(rowFrag.row, column: $0) },
background: rowFrag.attrs.background) background: rowFrag.attrs.background)
@ -122,7 +122,6 @@ public class NeoVimView: NSView {
.filter { self.grid.cells[rowFrag.row][$0].string.characters.count > 0 } .filter { self.grid.cells[rowFrag.row][$0].string.characters.count > 0 }
.map { self.positionOnView(rowFrag.row, column: $0) } .map { self.positionOnView(rowFrag.row, column: $0) }
// self.drawBackground(positions: positions, background: rowFrag.attrs.background)
if positions.isEmpty { if positions.isEmpty {
return return
} }