From 5c0bb0e44390756223a9fa5a548cf4e0d2c6427b Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 10 Jan 2022 17:52:04 -0800 Subject: [PATCH] vi: fix build. xputsn() only takes one argument; the other place this function outputs the same escape sequence just uses printf() (rather than xprintf()) so that seems fine here too. One flush per screen refresh is plenty (and there are still *lots* left). --- toys/pending/vi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/pending/vi.c b/toys/pending/vi.c index 44ade442..b784317a 100644 --- a/toys/pending/vi.c +++ b/toys/pending/vi.c @@ -1388,7 +1388,7 @@ static void draw_page() end = line; - xputsn("\e[%uH\e[2K", y+1); + printf("\e[%uH\e[2K", y+1); //find cursor position aw = crunch_nstr(&end, INT_MAX, bytes, 0, "\t\n", vi_crunch); -- 2.39.2