I think c.find_h() would be more useful if it used re.search() instead
of re.match().

This change would not give up any functionality because beginning a
regex with ^ restricts the expression to matching the beginning of the
string:

'^'
(Caret.) Matches the start of the string, and in MULTILINE mode also
matches immediately after each newline.

This change would also make c.find_h() more consistent with c.find_b()
which matches the regex anywhere in the string, not just at the
beginning.

In the 4.8-final source I find only two calls to c.find_h().  These
are in plugin quicksearch.py and in plugin stickynotes.py.

I think the users of quicksearch.py would be happy with this change,
but if they are not,  perhaps quicksearch.py could pre-pend '^' to the
regex the operator specifies?

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to