Skip to content

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