Mercurial > vim
view src/testdir/test_lineending.vim @ 35103:4e1c91683c8e default tip
translation(de): update German menu
Commit: https://github.com/vim/vim/commit/f1d3913a8020b3de79e489ef62b2a26a60bd318a
Author: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Date: Thu May 2 13:14:13 2024 +0200
translation(de): update German menu
closes: https://github.com/vim/vim/issues/14702
Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 02 May 2024 13:30:03 +0200 |
parents | 08940efa6b4e |
children |
line wrap: on
line source
" Tests for saving/loading a file with some lines ending in " CTRL-M, some not func Test_lineending() let l = ["this line ends in a\<CR>", \ "this one doesn't", \ "this one does\<CR>", \ "and the last one doesn't"] set ta tx enew! call append(0, l) $delete write Xfile1 bwipe Xfile1 edit Xfile1 let t = getline(1, '$') call assert_equal(l, t) new | only call delete('Xfile1') endfunc " vim: shiftwidth=2 sts=2 expandtab