~glacambre/firenvim

3624c478e6c3fee59b3bf04752b37359461319ec — glacambre 2 years ago ff6b8f0
Fix negative-width/negative-space characters breaking the renderer

Closes #1243
1 files changed, 2 insertions(+), 1 deletions(-)

M src/renderer.ts
M src/renderer.ts => src/renderer.ts +2 -1
@@ 953,7 953,8 @@ function paint (_: DOMHighResTimeStamp) {
                            if (pixelX >= 0
                                && pixelY >= 0
                                && (pixelX + width < canvas.width)
                                && (pixelY + charHeight < canvas.height)) {
                                && (pixelY + charHeight < canvas.height)
                                && width > 0 && charHeight > 0) {
                                glyphCache[id] = context.getImageData(
                                    pixelX,
                                    pixelY,