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

Bugfix(#296) #301

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Bugfix(#296) #301

wants to merge 1 commit into from

Conversation

Skian12
Copy link

@Skian12 Skian12 commented Jun 6, 2017

We FIXED #296 bug Issue in C,C++.

// My comment
some_code_here;

If you use |NERDComSexyComment| when some existing line of code already uses // comment in front of the line, you'll get the below code.

/*
*// My comment
*some_code_here
*/

Like the above code, it does not comment out the entire code, but rather makes imperfect segments

So while using |NERDComSexyComment|, if we face the line starting with //, we put space in front of that line

/*
* // My comment
*some_code_here
*/

like above.

And We also fix this bug when delimit comments are changed by |NERDComAltDelim|.

Although it doesn't look 'sexy' because we put space in only few line,
You can control this because when you put 1 or more number into NERDSpaceDelims, all line will be aligned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

C/C++ files: sexy comment across //-style commented lines
3 participants