-
Notifications
You must be signed in to change notification settings - Fork 17
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
Unnecessary space added if line contains comment char only #39
Comments
Yes, it's because For a simple full line, the command is I agree that it's not very intuitive. I will add a check in case there is no text to avoid this behavior, thanks! |
Might be worthwhile to merge those two under one function.
|
Yes. It's not only the space btw, it's also the symbols before and after the text that are put no matter a text is on the line or not (it didn't show in your example because the symbols before and after the text are set to the same symbol as the one for the line by default).
I'm currently rewriting the plugin from the ground up for the next version, in part because of this kind of poor design choices. The "simple lines" and "titled lines" won't be treated as two different categories. |
Done! |
Do you plan to land #36 there or as a patch for the current master? |
It will be for the the rewritten version, it needs too many changes to be patch for the current one. It's going quite well so far, but I honestly don't know when it will be available. |
Updated to latest, executing on this line: config = function() CBllline<cr> Note the offset and spaces. -- -- config = function() -------------------------------------------------------- :CBlline<cr> -- ------------------------------------------------------------------------------- |
Sorry, I don't understand what the problem is in your example? |
I would expect that from this: config = function()
-- ---- config = function() --------------------------------------------------- or -- config = function() --------------------------------------------------- Note the preserved column position. |
:set ft=bash
and add execute:CBllline
on an empty commented line.Before
#
After
# ── ─────────────────────────────────────────────────────────────────────────────
The text was updated successfully, but these errors were encountered: