view src/testdir/test_plus_arg_edit.vim @ 11653:67cf0d45b006 v8.0.0709

patch 8.0.0709: libvterm cannot use vsnprintf() commit https://github.com/vim/vim/commit/8327d1df1754b33d8a93b3411f30692f0042f4ce Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 11 22:34:51 2017 +0200 patch 8.0.0709: libvterm cannot use vsnprintf() Problem: Libvterm cannot use vsnprintf(), it does not exist in C90. Solution: Use vim_vsnprintf() instead.
author Christian Brabandt <cb@256bit.org>
date Tue, 11 Jul 2017 22:45:03 +0200
parents 140d51d5b5c3
children 9e04de2aa738
line wrap: on
line source

" Tests for complicated + argument to :edit command
function Test_edit()
  call writefile(["foo|bar"], "Xfile1") 
  call writefile(["foo/bar"], "Xfile2") 
  edit +1|s/|/PIPE/|w Xfile1| e Xfile2|1 | s/\//SLASH/|w
  call assert_equal(["fooPIPEbar"], readfile("Xfile1"))
  call assert_equal(["fooSLASHbar"], readfile("Xfile2"))
endfunction