preservim / nerdcommenter

Vim plugin for intensely nerdy commenting powers
Creative Commons Zero v1.0 Universal
4.99k stars 445 forks source link

Correct use of b:NERDCommenterFirstInit #519

Closed ppwwyyxx closed 1 year ago

ppwwyyxx commented 1 year ago

fix #518

The code set the variable b:NERDCommenterFirstInit on the current buffer, but access the variable using buffer number 1 - this should be incorrect. Changed to bufnr() instead.