[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Test to determine character left-overhangs a tab stretch.
From: |
Eli Zaretskii |
Subject: |
Re: Test to determine character left-overhangs a tab stretch. |
Date: |
Mon, 12 Nov 2018 18:13:29 +0200 |
> Date: Sun, 11 Nov 2018 18:06:10 -0800
> From: Keith David Bershatsky <address@hidden>
>
> I am working on feature requests #22873 (multiple fake cursors); and, #17684
> (crosshairs).
>
> Fake cursors are placed on a line in the order of left to right.
> ns/x_draw_window_cursor calls draw_phys_cursor_glyph, which calls draw_glyphs.
>
> Certain wide characters to the immediate right of a tab stretch cause the tab
> stretch to be redrawn -- erasing the fake cursors that were previously placed
> along the tab stretch. Here is a screenshot depicting a tab stretch after
> the cursors have been erased from it -- the tab stretch had red hbar cursors
> before they were erased:
>
> https://www.lawlist.com/images/glyph_overhang_001.png
>
> How can programmatically test for this situation?
Not sure what you are asking, but the logic for deciding when to
redraw due to overhang is entirely inside draw_glyphs, so you could do
the same as what it does.