From 903f72b5420fc683d550600f680516c3ee996571 Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Wed, 29 Jun 2016 18:32:33 +0200 Subject: [PATCH] Add a comment --- SwiftNeoVim/NeoVimView.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SwiftNeoVim/NeoVimView.swift b/SwiftNeoVim/NeoVimView.swift index 4d27b489..62b18a79 100644 --- a/SwiftNeoVim/NeoVimView.swift +++ b/SwiftNeoVim/NeoVimView.swift @@ -111,9 +111,9 @@ public class NeoVimView: NSView { let dirtyRects = self.rectsBeingDrawn() -// Swift.print(self.grid) - 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) }, background: rowFrag.attrs.background) @@ -122,7 +122,6 @@ public class NeoVimView: NSView { .filter { self.grid.cells[rowFrag.row][$0].string.characters.count > 0 } .map { self.positionOnView(rowFrag.row, column: $0) } -// self.drawBackground(positions: positions, background: rowFrag.attrs.background) if positions.isEmpty { return }