Posted: Mon Mar 03, 2008 5:37 pm Post subject: Complicated - TextView/Buffer
Hey everyone.
I have a text view which displays the contents of a file.
When i select/highlight some text, i use the get_selection_bounds() function to get the selected text and then i display the selection in another text view.
what i want to do now is to check wether the selection has characters on either side (i.e is it part of a word?)
for example:
"Hello world"
if "or" is selected, there are characters on either side. any ideas on how to
find this?
here is my code to find the boundary of selected text and store it: