Re: [code] [textadept] Search wrapped behaviour

From: Mitchell <>
Date: Sun, 6 Apr 2014 09:08:49 -0400 (EDT)

Hi Robert,

On Wed, 26 Mar 2014, Robert Gieseke wrote:

> Am 26/03/14 14:15, schrieb Mitchell:
>> On Wed, 26 Mar 2014, Robert Gieseke wrote:
>>> the find_wrapped event seems to be always emitted at the top of the
>>> buffer and not before the first occurrence of the searched term, where
>>> the search was initiated.
>>> Is this the expected behaviour?
>>> This discussion seems to disagree:
>> Yes, it is expected behavior. My understanding of "wrap around" is when
>> you hit the bottom of the buffer and jump to the top to continue the
>> search.
> Thanks for the clarification. How about changing the doc string to something
> like
> -- @field (string)
> -- Emitted when a text search passes the beginning of a buffer, either
> from
> -- bottom to top (when searching for a next occurrence), or from top to
> -- bottom (when searching for a previous occurrence).
> -- This is useful for implementing a more visual or audible notice when a
> -- search wraps in addition to the statusbar message.

Okay, I will update the documentation with something slightly different.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Sun 06 Apr 2014 - 09:08:49 EDT

This archive was generated by hypermail 2.2.0 : Mon 07 Apr 2014 - 06:44:49 EDT