Closed knusbaum closed 3 years ago
Sometimes it's helpful when moving the cursor to know where the end of the buffer is. I think you could use len(edit.Text()) but that looks expensive. Internally, Edit uses ui.text.Size() so I am exposing that through a Size() method.
len(edit.Text())
Edit
ui.text.Size()
Size()
thanks for the patch! i added Edit.Size just now. did a separate commit instead of merge because the PR has other changes.
Sometimes it's helpful when moving the cursor to know where the end of the buffer is. I think you could use
len(edit.Text())
but that looks expensive. Internally,Edit
usesui.text.Size()
so I am exposing that through aSize()
method.