Skip to content

fix: read conceal setting after sorting#558

Merged
folke merged 1 commit intofolke:mainfrom
MariaSolOs:conceal-offset
Aug 29, 2023
Merged

fix: read conceal setting after sorting#558
folke merged 1 commit intofolke:mainfrom
MariaSolOs:conceal-offset

Conversation

@MariaSolOs
Copy link
Copy Markdown
Contributor

Fixes #557

The explanation of the fix is that if format.conceal is true, then all offsets are set to 0 and then the matched pattern won't be the longest one (so if one types :lua, the pattern for ^: matches instead of ^:lua). Once sorting is done, then the offset is correctly applied based on format.conceal.

I manually tested this with and without concealing but I might appreciate a quick sanity check ;) @folke

@folke
Copy link
Copy Markdown
Owner

folke commented Aug 1, 2023

Thank you for the PR! I'm leaving on vacation this evening, so won't have time to look at it till I'm back. End of August. Thanks again!

@MariaSolOs
Copy link
Copy Markdown
Contributor Author

@folke no worries, enjoy your vacation! 🏝️

@MariaSolOs
Copy link
Copy Markdown
Contributor Author

MariaSolOs commented Aug 27, 2023

@folke sorry for the ping, but are there any chances of having this merged soonish? 😺

@folke folke merged commit 24c09cc into folke:main Aug 29, 2023
@folke
Copy link
Copy Markdown
Owner

folke commented Aug 29, 2023

thanks!

@MariaSolOs
Copy link
Copy Markdown
Contributor Author

@folke thanks to you! (for your patience with my endless issues and PRs to your plugins lol)

@MariaSolOs MariaSolOs deleted the conceal-offset branch August 29, 2023 17:11
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.

bug: cmdline format patterns no longer work when setting conceal = false

2 participants