瀏覽代碼

immediately unsave the cursor position, as a neat trick

master
XeonSquared 7 月之前
父節點
當前提交
39e9b1765d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      module/buffer.lua

+ 1
- 1
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 {}


Loading…
取消
儲存