bedit: Fixed addition of weird DC3 character when saving

This commit is contained in:
2026-06-20 11:27:04 +03:00
parent 8fc249433b
commit 45a09284c2
+2 -2
View File
@@ -188,8 +188,7 @@ while true do
if keyboard.keys[eventArgs[4]] == "s" then if keyboard.keys[eventArgs[4]] == "s" then
save() save()
end end
end else
if keyboard.keys[eventArgs[4]] == "up" and cursorY > 1 then if keyboard.keys[eventArgs[4]] == "up" and cursorY > 1 then
if cursorY - scrollY <= 1 then if cursorY - scrollY <= 1 then
renderBufferFlag = true renderBufferFlag = true
@@ -283,6 +282,7 @@ while true do
renderBufferFlag = true renderBufferFlag = true
end end
end end
end
until next(eventArgs) == nil until next(eventArgs) == nil
local displayedCursorX = cursorX - scrollX local displayedCursorX = cursorX - scrollX
local displayedCursorY = cursorY - scrollY local displayedCursorY = cursorY - scrollY