aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-10-02 18:56:44 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-10-11 17:25:18 +0000
commitcdcdfe527c353bf55c3aaf9f843ee2e7c3cf9b0f (patch)
treed30b2dc5d76bb2ea7f687323f27f0ae0fe2c9777 /server.c
parentsixel: overwrite-by-rectangle expects ‘width’ to not exceed screen (diff)
sixel: fix sheared image when image crosses scrollback wrap-around
When a sixel image crosses the scrollback wrap-around, it is split up into (at least) two pieces. We use cursor->point.col for all pieces’ x-coordinate. This caused the final image to appear sheared, since we do a carriage-return (after a number of linefeeds) after each piece - this causes the cursor’s position to be reset to the left margin. The solution is simple; remember the cursor’s initial x-coordinate, and use that to position all image pieces. Closes #151.
Diffstat (limited to 'server.c')
0 files changed, 0 insertions, 0 deletions