From 39e9b1765d5e2cd860ea8a4b9db19047acf6d01c Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Fri, 29 Sep 2023 15:35:29 +1000 Subject: [PATCH] immediately unsave the cursor position, as a neat trick --- module/buffer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/buffer.lua b/module/buffer.lua index 4135662..ba1d4e2 100644 --- a/module/buffer.lua +++ b/module/buffer.lua @@ -260,7 +260,7 @@ function buffer:read(...) -- this whole thing is a house of cards. good luck. io.write("\27[s\27[8m\27[6n") if not (self.mx or self.my) then - io.write("\27[9999;9999H\27[6n") + io.write("\27[9999;9999H\27[6n\27[u") end local pos, buffer, hIndex, sx, sy = 1, "", 0 self.history = self.history or {}