<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 07.04.2016 11:12, Michael Van
Canneyt wrote:<br>
</div>
<blockquote
cite="mid:alpine.DEB.2.10.1604071059400.7559@home.telenet.be"
type="cite">
But the dialog's behaviour has always been 'as in delphi' (or at
least as long as I remember)
<br>
</blockquote>
<br>
No, it wasn't. <br>
<br>
<blockquote
cite="mid:alpine.DEB.2.10.1604071059400.7559@home.telenet.be"
type="cite">so I don't understand what you changed or why you
thought it was necessary ?
<br>
</blockquote>
<br>
Read the issue report. Lazarus picked scope "from cursor" when
executing search on a selection. Delphi picks up "from beginning" in
this case.<br>
<br>
<br>
<blockquote
cite="mid:alpine.DEB.2.10.1604071059400.7559@home.telenet.be"
type="cite">Well. You definitely broke it, from my point of view.
It used to work correct :)
<br>
</blockquote>
<br>
Well yes, if you search with single-line selection, it works as
expected (I fixed this). I forgot to test multi line selection. I'll
fix that as well.<br>
<br>
<br>
<blockquote
cite="mid:alpine.DEB.2.10.1604071059400.7559@home.telenet.be"
type="cite">
Tried again, but select five lines with shift-up.
<br>
So the cursor is at the start of the selection.
<br>
Same result.
<br>
<br>
I undid your revision, and then it works correct:
<br>
<br>
Dialog opens,
<br>
scope: selected text,
<br>
origin: from cursor.</blockquote>
<br>
Exactly this is wrong behavior what I wanted to fix. It should be<br>
scope: selected text, <br>
<b>origin: from beginning.</b><br>
Because if you select with shift-down, you get nothing in the
search.<br>
<br>
Lazarus does it correctly after r51697 for single line selection but
not multi-line. I'll fix it.<br>
<br>
Ondrej<br>
</body>
</html>