Log In  


Hi, everyone!

I was playing with Picotron text field and text editor recently and found some possible errors:

  1. In function GuiElement:attach_filed (gui.lua):
    In line 239: local str = type(self.get == "function") and self:get() or "---"
    I think this should be local str = type(self.get) == "function" and self:get() or "---", or get will always be called

  2. In function attach_text_editor (gui_ed.lua):
    In line 1250 there is a call content.key_callback(k) that causes errors for some keys.
    Maybe this should be content.key_callback[k](self, k)

Hope this was helpful!




[Please log in to post a comment]