evil-nerd-commenter icon indicating copy to clipboard operation
evil-nerd-commenter copied to clipboard

Cursor moves to top of org src-block

Open smalltimer opened this issue 2 years ago • 0 comments

Hi,

evil-nerd-commenter is truly the 'all you'll ever need' package for commenting :D There is one aspect of the commenting I'd like to change - but I am not able to figure out how. When I'm inside a src-block in an org file and I select a couple of lines with Vj, then evilnc-comment-or-uncomment-lines ends up commenting the right lines as expected, but also moves the cursor to the first line in the src-block. I usually have small blocks so I never noticed this before. But now I'm working on rather longish blocks and I'd like the cursor to not move after the commenting. Am I missing some variable that I haven't set?

Also, I didn't know where or how to ask for help, so I opened an issue here. I think this is probably not a bug but rather my inability to figure out the right variable to set. I'm happy to delete the issue if you'd like.

Cheers!

smalltimer avatar Jan 09 '22 20:01 smalltimer