From d12922cb0b6f3f501c40566974988405ec8a81f1 Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Thu, 30 May 2019 00:36:49 -0400 Subject: [PATCH] Update lddwindow.lua --- lddwindow.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lddwindow.lua b/lddwindow.lua index 5421dea..ebec9e3 100644 --- a/lddwindow.lua +++ b/lddwindow.lua @@ -190,9 +190,9 @@ lddwindow.newWindow = function(nativeTerm, x, y, width, height, visible) for i = 1, #char do cx = -1 + i + output.info.cursorX if cx >= 1 and cx <= output.info.width then - output.info.buffer[1][cy][cx] = stringSub(char, i, i) - output.info.buffer[2][cy][cx] = stringSub(text, i, i) - output.info.buffer[3][cy][cx] = stringSub(back, i, i) + output.info.buffer[1][output.info.cursorY][cx] = stringSub(char, i, i) + output.info.buffer[2][output.info.cursorY][cx] = stringSub(text, i, i) + output.info.buffer[3][output.info.cursorY][cx] = stringSub(back, i, i) end end end