Lech Lorens wrote:
> Edit the following file:
> #v+
> /* vim: set ft=c fo+=o com=s1\:/*,m\:*,ex\:*/ :*/
>
> void func(void)
> {
> /*
> * Comment.
> */
> }
> #v-
>
> Go to the line containing the closing part of the comment and start a new
> line below by pressing o. Note how the middle comment unexpectedly is
> inserted.
>
> The attached patch fixes the problem.
Thanks.
It looks like it doesn't quite work if there are multiple middle parts
or more than one end part. I'll change it a bit to fix that. Also
makes it shorter, no need to check "check_for_the_end_part" everywhere.
--
hundred-and-one symptoms of being an internet addict:
72. Somebody at IRC just mentioned a way to obtain full motion video without
a PC using a wireless protocol called NTSC, you wonder how you never
heard about it
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php