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

From: Daniel <quuuux.att.gmail.com>
Date: Sun, 28 May 2017 20:02:35 +0200

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.

Best
Daniel

-- 
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 - 14:02:35 EDT

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