Re: [Geany-Devel] How to programmatically de-select text -- solved

2019-08-28 Thread Austin Green
> SCI_SETSEL(position anchor, position caret) ... scintilla_send_message() > which is in the API @Lex: Yay! SCI_SETSEL was right on target! Or "rem acu tetigiste" as the Romans used to say. Overnight my brain had come up with the idea of investigating the Scintilla message API, so you saved

Re: [Geany-Devel] How to programmatically de-select text

2019-08-28 Thread Lex Trotman
On Wed, 28 Aug 2019 at 20:38, Austin Green wrote: > > Hi Lex, > > > > Trying to programmatically cancel a text selection. There are functions > > > that will probably do it, e.g. sci_set_selection, but bearing in mind the > > > restriction on changing the API, those functions are not callable f

Re: [Geany-Devel] How to programmatically de-select text

2019-08-28 Thread Colomban Wendling
Le 28/08/2019 à 12:38, Austin Green a écrit : > […]> > Yes, that's what I tried first. It only appears to have no selection > -- as soon as I move the caret, it starts selecting again (even > without the shift key!) So appears to have gone into a strange > extend-selection-just-by-moving mode. I

Re: [Geany-Devel] How to programmatically de-select text

2019-08-28 Thread Austin Green
Hi Lex, > > Trying to programmatically cancel a text selection. There are functions > > that will probably do it, e.g. sci_set_selection, but bearing in mind the > > restriction on changing the API, those functions are not callable from my > > code. > > Surely I'm missing something obvious her

Re: [Geany-Devel] How to programmatically de-select text

2019-08-27 Thread Lex Trotman
On Wed, 28 Aug 2019 at 15:12, Austin Green wrote: > > Trying to programmatically cancel a text selection. There are functions that > will probably do it, e.g. sci_set_selection, but bearing in mind the > restriction on changing the API, those functions are not callable from my > code. > > Sure

[Geany-Devel] How to programmatically de-select text

2019-08-27 Thread Austin Green
Trying to programmatically cancel a text selection. There are functions that will probably do it, e.g. sci_set_selection, but bearing in mind the restriction on changing the API, those functions are not callable from my code. Surely I'm missing something obvious here? I do hope so! :) Cheer