Would you accept a patch for a SCI_AUTOCGETCURRENTTEXT message? If so I
assume it should take buffer and buffer_len arguments rather than
return allocated memory?
It seems messy to use the SCI_AUTOCGETCURRENT index to scan through the
autocompletion string.
Regards,
Nick
> Would you accept a patch for a SCI_AUTOCGETCURRENTTEXT message?
Yes.
> If so I
> assume it should take buffer and buffer_len arguments rather than
> return allocated memory?
The convention is to copy into a char* lParam assuming that the
buffer is long enough, returning the length (not including the
terminating \0). If the lParam is NULL then no copying is performed
but the length is still returned, allowing the container to allocate a
buffer.
Neil
> Please see patch attached.
OK, committed.
Neil