Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't pad empty lines #768

Merged
merged 1 commit into from
May 2, 2023
Merged

Don't pad empty lines #768

merged 1 commit into from
May 2, 2023

Conversation

lervag
Copy link
Contributor

@lervag lervag commented May 2, 2023

This is an attempt at fixing #766.

@lervag
Copy link
Contributor Author

lervag commented May 2, 2023

I'm not 100% sure this covers it, but it seemed right after testing. The idea is to avoid adding the padding to otherwise empty lines.

Copy link
Owner

@folke folke left a comment

Choose a reason for hiding this comment

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

Remove your changes and just add the code from my comment right before table. Insert
Then it'll work for all cases including those where the line has no segments

lua/lazy/view/text.lua Show resolved Hide resolved
@lervag
Copy link
Contributor Author

lervag commented May 2, 2023

Thanks; If I understood correctly, it should be good now?

@folke folke merged commit b00d6f7 into folke:main May 2, 2023
@folke
Copy link
Owner

folke commented May 2, 2023

awesome, thanks!

@lervag lervag deleted the feat/empty-lines branch May 2, 2023 20:41
@lervag
Copy link
Contributor Author

lervag commented May 2, 2023

My pleasure, thanks for the great plugin! :)

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.

None yet

2 participants