view src/testdir/test_lineending.vim @ 24909:09d222e89a84 v8.2.2992

patch 8.2.2992: Vim9: completion for :disassemble is incomplete Commit: https://github.com/vim/vim/commit/4ee9d8e04daa97a3d0a19d7d2eed76b7721301e6 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 13 18:38:48 2021 +0200 patch 8.2.2992: Vim9: completion for :disassemble is incomplete Problem: Vim9: completion for :disassemble is incomplete. Solution: Recognize the "debug" and "profile" arguments.
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Jun 2021 18:45: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