Suppose the following document, with six "\n\n" patterns:
x
x
x
z
z
z
And suppose the six first lines (from the first "x" to the line before the first "z") selected. If I run "Search and replace", check "Only in selection", and replace "\n\n" by "\n", I reduce the number of lines in the region. However, the region selected by Alpha keep its previous size, and then now encompass lines with "z". This prevent me from applying a succession of string replacements that can change the region size. Maybe it's possible to have the replacement function track the number of lines added (or removed), and change the region size accordingly? Maybe it's not easy...
All the best,
Sylvain
Hi Sylvain,
thanks for reporting. I'll fix this, it should not be difficult.
This is fixed now. Changes committed to the repository (rev. 1978).