-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
concealer broken when promoting first element #821
Comments
The reason seems to be that the "bufwinenter" event is artificially considered to be at position (1,0), which costs the concealing quota on the first line. |
neorg/lua/neorg/modules/core/concealer/module.lua Lines 1552 to 1554 in 3009adf
This is likely a bug, because it's located under the Maybe it was meant to be |
@champignoom you're totally right! That's a huge bug actually, as it means that this whole time the debounce counters |
Okay I pushed a commit that (at least on my end) fixes this problem, that was in fact the issue! Please do reopen if it's still broken for you :) |
Prerequisites
Neovim Version
v0.9.0
Neorg setup
Actual behavior
With cursor on the first line with 'a', press '>>' to promote it, then the text becomes messed up:
With the patch of the promo module from #817, the text will still be messed up but slightly differently:
so this is more likely a concealer issue.
Expected behavior
not messed up:
Note that, if an empty line is inserted before the first line so that everything starts from the second line:
promoting on the second line with 'a' won't reproduce the bug and everything behaves as expected.
Steps to reproduce
Open test.norg, type
then ESC to enter normal mode, the text being concealed to
Potentially conflicting plugins
No response
Other information
related: #292 (comment)
Help
Yes
Implementation help
No response
The text was updated successfully, but these errors were encountered: