Patch 8.2.4326
Problem: "o" and "O" copying comment not sufficiently tested.
Solution: Add a test case. (closes #9718)
Files: src/testdir/test_textformat.vim
*** ../vim-8.2.4325/src/testdir/test_textformat.vim 2021-12-29
18:09:10.242453334 +0000
--- src/testdir/test_textformat.vim 2022-02-08 12:56:30.076132792 +0000
***************
*** 238,244 ****
END
call assert_equal(expected, getline(1, '$'))
! " Using "o" repeats the line comment, "O" does not.
%del
let text =<< trim END
nop;
--- 238,270 ----
END
call assert_equal(expected, getline(1, '$'))
! " Using either "o" or "O" repeats a line comment occupying a whole line.
! %del
! let text =<< trim END
! nop;
! // This is a comment
! val = val;
! END
! call setline(1, text)
! normal 2Go
! let expected =<< trim END
! nop;
! // This is a comment
! //
! val = val;
! END
! call assert_equal(expected, getline(1, '$'))
! normal 2GO
! let expected =<< trim END
! nop;
! //
! // This is a comment
! //
! val = val;
! END
! call assert_equal(expected, getline(1, '$'))
!
! " Using "o" repeats a line comment after a statement, "O" does not.
%del
let text =<< trim END
nop;
*** ../vim-8.2.4325/src/version.c 2022-02-08 12:07:41.839496892 +0000
--- src/version.c 2022-02-08 12:58:04.720064874 +0000
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 4326,
/**/
--
Far back in the mists of ancient time, in the great and glorious days of the
former Galactic Empire, life was wild, rich and largely tax free.
Mighty starships plied their way between exotic suns, seeking adventure and
reward among the furthest reaches of Galactic space. In those days, spirits
were brave, the stakes were high, men were real men, women were real women
and small furry creatures from Alpha Centauri were real small furry creatures
from Alpha Centauri. And all dared to brave unknown terrors, to do mighty
deeds, to boldly split infinitives that no man had split before -- and thus
was the Empire forged.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220208125917.7E47E1C2911%40moolenaar.net.