Hi,
I’m sorry to ask what I assume to be such a basic question, but I can’t for the life of me figure our how to insert text at the current cursor position:
I thought I had the following code working for a little while:
edit = self.window.active_view().begin_edit()
self.window.active_view().insert(edit, self.window.active_view().sel()[0].begin(), attribute)
self.window.active_view().end_edit()
Hower, this appears to only work in some cases. What is the proper way of doing this?
Thanks in advance!