bedit: oops

This commit is contained in:
mcplayer3
2026-06-17 10:39:04 +10:00
parent 317c0df9e8
commit afe27f2b41
+1 -1
View File
@@ -144,7 +144,7 @@ while true do
end end
cursorX = cursorX - 1 cursorX = cursorX - 1
end end
if keyboard.keys[eventArgs[4]] == "right" and cursorX < string.len(lines[cursorY]) then -- TODO: make scrolling up and down lines that are shorter than cursorX snap to the end of the line if keyboard.keys[eventArgs[4]] == "right" and cursorX < string.len(lines[cursorY]) then
if cursorX - scrollX >= resX then if cursorX - scrollX >= resX then
renderBufferFlag = true renderBufferFlag = true
scrollX = scrollX + 1 scrollX = scrollX + 1