Files
oak-gpui/crates
Aaron Feickert 7c03e11cfc Fix blank line cursor width (#22275)
This PR ensures that, for fixed-width fonts, the cursor width is the
same on blank lines as on non-blank lines, as well as at the end of a
line. It does so by using the em advance to define the cursor width
instead of the em width in these cases.

Note that this can look... bizarre on non-fixed-width fonts:
<img width="93" alt="Screenshot 2024-12-19 at 21 43 11"
src="https://github.com/user-attachments/assets/a4c9b26c-98ea-4a1d-947b-51f1acd3c2f8"
/>
However, this is arguably reasonably consistent with how (terminal) Vim
handles it:
<img width="45" alt="Screenshot 2024-12-19 at 21 46 42"
src="https://github.com/user-attachments/assets/ec3ff614-7a15-4cc3-8d14-3d15ce62f2b8"
/>

Closes #22260.

Release Notes:

- N/A
2024-12-20 10:26:27 +00:00
..
2024-12-17 22:16:59 -07:00
2024-12-17 22:16:59 -07:00
2024-12-16 13:39:40 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-11-18 22:56:34 +01:00
2024-12-03 23:22:26 -05:00
2024-12-13 14:23:02 -05:00
2024-12-18 17:27:25 -05:00
2024-12-17 22:16:59 -07:00