jalovatt / scythe

Lua GUI library and utility framework for Reaper scripts (formerly Lokasenna_GUI)
https://jalovatt.github.io/scythe
MIT License
26 stars 5 forks source link

Textbox:val in Textbox.lua breaks cursor placement (fix attached in comment) #171

Open nickvonkaenel opened 3 years ago

nickvonkaenel commented 3 years ago

function Textbox:val(newval) if newval then --self:setEditorState(tostring(newval), nil, string.len(newval) + 2 - self.windowW) self:setEditorState(tostring(newval)) --this seems to work better self:redraw() else return self.retval end end

kuga0509 commented 3 years ago

Glad to see this! I have been troubleshooting workarounds on this for weeks. Thanks!!