Re: [code] [textadept] buffer.position_relative()

From: Mitchell <>
Date: Wed, 6 May 2015 11:59:06 -0400 (EDT)

Hi Chris,

On Wed, 6 May 2015, Chris Emerson wrote:

> Hi,
> I noticed that buffer.position_relative() (as well as position_after())
> doesn't do what's documented. The documentation says "Returns...
> buffer.length if the position is greater than buffer.length"; however it
> seems to actually return 0.
> I think the problem is actually in Scintilla, which calls an internal
> function which returns -1 for out of range, and then clamps that to the
> buffer bounds. The documented Textadept behaviour seems much more useful.
> :-)

Thanks for the report. I'll send a patch upstream to Scintilla. Neil is
currently on holiday so it probably won't be merged for a while. It
appears position_after works fine, but position_relative does not.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Wed 06 May 2015 - 11:59:06 EDT

This archive was generated by hypermail 2.2.0 : Thu 07 May 2015 - 06:37:59 EDT