<div dir="ltr">Ok, a quick experiment leads me to believe it is indeed a redrawing issue. As you suggested, I tried moving another window over the editor window. When this happens, the highlighting appears as it should (when the cursor is touching a bracket, the other bracket is highlighted; when the cursor is away from the bracket, neither are highlighted). As soon as the editor window receives focus again, the redrawing doesn't work anymore to highlight or de-highlight the brackets.<br>
<br>BTW, the same thing happens if I pageup/pagedown with the cursor next to the bracket. When I pageup/pagedown to bring that section back onto the screen, the highlighting has repainted correctly. It also repaints correctly if I CTRL+UP or CTRL+DOWN to scroll the editor window by one line while the cursor remains on the line.<br>
<br>So, it definitely seems like a repaint or redrawing issue.<br><br><div class="gmail_quote">On Fri, Oct 10, 2008 at 9:00 AM, Martin Friebe <span dir="ltr"><<a href="mailto:lazarus@mfriebe.de">lazarus@mfriebe.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Well, I don't have a mac, so I can't test this, but I was involved into<br>
some refactor around the bracket-highlights (a few month back).<br>
<br>
one of the major changes was<br>
<a href="http://bugs.freepascal.org/view.php?id=11693" target="_blank">http://bugs.freepascal.org/view.php?id=11693</a> revision 15861<br>
Did it work before that? Did/does it work in 0.9.24?<br>
<br>
A few of the other work items were<br>
<a href="http://bugs.freepascal.org/view.php?id=11732" target="_blank">http://bugs.freepascal.org/view.php?id=11732</a> revision 15845<br>
<a href="http://bugs.freepascal.org/view.php?id=11754" target="_blank">http://bugs.freepascal.org/view.php?id=11754</a> revision 15883 (highlight<br>
bracket on either side of caret)<br>
<br>
Anyway, a few things that may help to nail it down (even so I will not<br>
be able to do too much, since I have no mac...)<br>
<br>
1) Do determine if it is an issue, with synedit thinking it needs to<br>
highlight a bracket, or is it an issue with Synedit not redrawing?<br>
<br>
Do find out: When the highlight goes wrong:<br>
a) Bracket is highlighted, but the cursor moved away<br>
b) Bracket is not highlighted, but the cursor is on the bracket<br>
<br>
resize the window, or overlap it with another window => anything that<br>
should force a redraw => does synedit correct the highlighting?<br>
<br>
2) Fontsize issues (there is a good chance to find it here)<br>
<br>
- Try highlighter = "none" or "text" does that look any better?<br>
- does it make a diff,if the caret is on the opening or closing bracket<br>
(the bracket occurring first on the line, or last?)<br>
- does it make a diff if the 2 brackets are on the same line, or on 2<br>
different lines (especially with highlighter none/text ?<br>
<br>
Synedit with highlighter, paints the line as a selection of small<br>
"tokens". It calculates the width of each of them. If the actual<br>
textdrawer gets a different width => all sort of strange things can happen.<br>
That could explain an operating system dependent issue.<br>
<br>
<br>
Martin<br>
<div class="Ih2E3d"><br>
<br>
<br>
John Stoneham wrote:<br>
><br>
><br>
> On Fri, Oct 10, 2008 at 4:17 AM, Mattias Gärtner<br>
</div><div class="Ih2E3d">> <<a href="mailto:nc-gaertnma@netcologne.de">nc-gaertnma@netcologne.de</a> <mailto:<a href="mailto:nc-gaertnma@netcologne.de">nc-gaertnma@netcologne.de</a>>> wrote:<br>
><br>
> Zitat von John Stoneham <<a href="mailto:captnjameskirk@gmail.com">captnjameskirk@gmail.com</a><br>
</div>> <mailto:<a href="mailto:captnjameskirk@gmail.com">captnjameskirk@gmail.com</a>>>:<br>
<div><div></div><div class="Wj3C7c">><br>
> > I've been using the latest svn (Carbon) for a while now,<br>
> updating once a day<br>
> > or so, and matching brackets never seem to highlight properly.<br>
> This issue<br>
> > appears on 10.4.11 and 10.5.3 (different builds for Tiger and<br>
> Leopard).<br>
> > Usually, they don't highlight at all. When they do highlight,<br>
> one or both<br>
> > often get "stuck" with the highlighting on after the cursor<br>
> moves away.<br>
><br>
> Some weeks ago I saw the same problem. It was the wrong font.<br>
> Since then it works almost nice, only sometimes the highlighting<br>
> is not updated.<br>
><br>
><br>
> Well, this would be a major improvement over what I see all the time.<br>
> Thing is, I've tried all the fixed width fonts (Andale Mono, Courier,<br>
> Courier New, Monaco), and changing font doesn't have any effect. It<br>
> still doesn't work properly, ever. Which font are you using that's<br>
> causing the bracket highlighting to almost work? Actually, it'd be<br>
> better if you posted all your settings: the color scheme you use,<br>
> font, font size, whether anti-aliasing is enabled, and your settings<br>
> for matching brackets (e.g. bold, inverted, etc). Maybe they're some<br>
> "magic combination" and you've stumbled onto it.<br>
><br>
> Perhaps you could attach your editoroptions.xml file?<br>
><br>
><br>
><br>
> > Is anyone else noticing this issue? If so, I'll submit a bug report.<br>
><br>
> If you have some clues how to reproduce it reliable , yes please.<br>
><br>
><br>
> It reproduces reliably for me, in that bracket highlighting never<br>
> works the way it's supposed to. However, it seems to be working<br>
> somewhat for you. If I can reproduce your settings and see the same<br>
> behaviour, then I'm sure you could reproduce mine and see what I'm<br>
> seeing. Then I'd say it's reproducable and I'll file a bug report.<br>
><br>
> --<br>
> _| ( ) |-| |\|<br>
</div></div>> ------------------------------------------------------------------------<br>
<div><div></div><div class="Wj3C7c">><br>
> _______________________________________________<br>
> Lazarus mailing list<br>
> <a href="mailto:Lazarus@lazarus.freepascal.org">Lazarus@lazarus.freepascal.org</a><br>
> <a href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
><br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lazarus.freepascal.org">Lazarus@lazarus.freepascal.org</a><br>
<a href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>_| ( ) |-| |\|<br>
</div>