Recently I write quite a lot comments for c/c++ files. I use
auto-fill-mode for comment auto format. But I found a quite annoying problem: whenever I input SPC at the end of a comment line, the cursor just sticks to the end of the last word in the line, as the screenshot shows below:
Strangely, this only happens in block style
/**/ comment. If I use line comment
auto-fill won't prevent cursor from moving:
Since I made the screenshot with
emacs -q, I am sure this is the default behaviour of
emacs 26.2. Can anyone tell me how to prevent such annoying default behaviour?