render: skip clearing images if they aren't supported
This commit is contained in:
parent
0fe1142989
commit
6abfd8fc3f
2 changed files with 3 additions and 2 deletions
|
@ -33,7 +33,7 @@ pub fn main() !void {
|
|||
defer loop.stop();
|
||||
|
||||
// Optionally enter the alternate screen
|
||||
try vx.enterAltScreen();
|
||||
// try vx.enterAltScreen();
|
||||
|
||||
var nvim = try vaxis.widgets.nvim.Nvim(Event).init(alloc, &loop);
|
||||
try nvim.spawn();
|
||||
|
|
|
@ -251,7 +251,8 @@ pub fn render(self: *Vaxis) !void {
|
|||
} = .{};
|
||||
|
||||
// Clear all images
|
||||
_ = try tty.write(ctlseqs.kitty_graphics_clear);
|
||||
if (self.caps.kitty_graphics)
|
||||
_ = try tty.write(ctlseqs.kitty_graphics_clear);
|
||||
|
||||
var i: usize = 0;
|
||||
while (i < self.screen.buf.len) {
|
||||
|
|
Loading…
Reference in a new issue