Skip to content

Add support for alignment in lines with zero-width characters#976

Merged
pfitzseb merged 4 commits into
JuliaEditorSupport:masterfrom
ronisbr:zero_width_char_alignment
May 22, 2026
Merged

Add support for alignment in lines with zero-width characters#976
pfitzseb merged 4 commits into
JuliaEditorSupport:masterfrom
ronisbr:zero_width_char_alignment

Conversation

@ronisbr
Copy link
Copy Markdown
Contributor

@ronisbr ronisbr commented Apr 12, 2026

Hi @domluna !

This commit should address the problem with alignment in lines with zero-width characters.

Closes #975

@ronisbr
Copy link
Copy Markdown
Contributor Author

ronisbr commented Apr 23, 2026

Bump!

@ronisbr
Copy link
Copy Markdown
Contributor Author

ronisbr commented May 20, 2026

Bump 2!

Copy link
Copy Markdown
Contributor

@pfitzseb pfitzseb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit confusing that FST.line_offset and State.line_offset talk about char offsets, but AlignGroup.line_offsets contains textwidth-based offsets, but the change LGTM otherwise.

@pfitzseb
Copy link
Copy Markdown
Contributor

Can you run JuliaFormatter on this please? CI is complaining about some files not being formatted properly.

@ronisbr
Copy link
Copy Markdown
Contributor Author

ronisbr commented May 22, 2026

@pfitzseb Done!

@pfitzseb pfitzseb merged commit 5a05d49 into JuliaEditorSupport:master May 22, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JuliaFormatter alignment does not work with zero-width characters

2 participants