Re: [code] [textadept] Regex search result is not always selected

From: Mitchell <m.att.foicica.com>
Date: Sun, 28 May 2017 18:50:44 -0400 (EDT)

Hi Daniel,

On Sun, 28 May 2017, Daniel wrote:

> Hi,
>
> according to the API docs buffer.search_next() and buffer.search_prev()
> should result in the matching text being selected. On my Textadept 9.4
> installation this works correctly in the following scenarios:
>
> * Find next without regex
> * Find prev without regex
> * Find next with regex
>
> When using "Find prev with regex" the matching text is found correctly,
> however it is not selected if the regex contains a repeat-operator.
>
> To reproduce perform a regex search for "^.*:$" on the following document:
>
> --------
> foo:
> bar:
> baz:
> --------
>
> Repeatedly executing "Find next" iterates through all 3 lines with each being
> selected correctly. "Find prev" iterates through all 3 lines as well but only
> selects the colon.

Thank you for the report. I will look into this when I have the chance.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sun 28 May 2017 - 18:50:44 EDT

This archive was generated by hypermail 2.2.0 : Mon 29 May 2017 - 06:53:33 EDT