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

Corrupted indentation with commentary_startofline = 1 #123

Open
dnezamaev opened this issue Mar 14, 2020 · 0 comments
Open

Corrupted indentation with commentary_startofline = 1 #123

dnezamaev opened this issue Mar 14, 2020 · 0 comments

Comments

@dnezamaev
Copy link

TL;DR videos: first and second

Suppose we have C/C++ code like this, cursor on 'int x = 1' and doing motion like 'gcd' to comment two strings.

int main(int argc, char *argv[])
{
  int x = 1;
  //return 0;
}

Then we repeat same action to uncomment and loosing one space of indentation on each uncommenting on that two strings.

Important things here:

  1. b:commentary_startofline=1
  2. return string is already commented without space (slashes are closely to text)
  3. commentstring value does not matter, it can be reproduced with default /*%s*/
  4. filetype does not matter, it can be reproduced on python code also
  5. adding one more string after '//return' makes it even worse (see first video)

P.S. Thank you for plugins, they are cool! =)

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

No branches or pull requests

1 participant