im doing a plugin to the cloud 9 sdk its basically a simple autocomplete for c language
my issue is that when i complete the name of the function the ide doesn't reserve the change meaning the next time he edit the line it will go back to before the line was edited
for example if i write pri
then selected printf
then pressed space it will be "pri "
not "printf "
here is my code