[Lazarus] SynEdit.TextBetweenPoints (Martin?)
Martin Frb
lazarus at mfriebe.de
Sat Aug 10 22:52:45 CEST 2019
On 10/08/2019 22:18, Bart via lazarus wrote:
>
> The situation with Lines.Count=0 even got worse: it now places Post in
> front of Pre, so you get '}{' instead of "{}'.
> As a side effect of that, the caret is in between the } and { (which
> is where I wanted them to be ;) )
>
> Here's the debug output for that situation:
>
> BlockBegin =1,1
> BlockEnd =1,1
> SelLength =0
> BackwardsSel=FALSE
> Lines.Count =0
> After SetLogicalCaret (LogicalCaretXY := Blocken, which is 1,1)
> BlockBegin =1,0 <<====== ???
> BlockEnd =1,1
>
Well, yes. I tested with all the SetCaret and SetBlock.... disabled.
I will have to look into that.
The block pos is limited to existing lines. And if line 1 does not
exist..... argh
More information about the lazarus
mailing list