Mercurial > vim
view src/testdir/test_ex_undo.vim @ 14913:d4777be849d0 v8.1.0468
patch 8.1.0468: MS-Windows: filter command with pipe character fails
commit https://github.com/vim/vim/commit/0664089eccec1083dd04ef2255856fb34ce62f15
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Oct 9 21:49:33 2018 +0200
patch 8.1.0468: MS-Windows: filter command with pipe character fails
Problem: MS-Windows: Filter command with pipe character fails. (Johannes
Riecken)
Solution: Find the pipe character outside of quotes. (Yasuhiro Matsumoto,
closes #1743, closes #3523)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 09 Oct 2018 22:00:07 +0200 |
parents | 52b13e25b21d |
children | 08940efa6b4e |
line wrap: on
line source
" Tests for :undo func Test_ex_undo() new ex-undo setlocal ul=10 exe "normal ione\n\<Esc>" setlocal ul=10 exe "normal itwo\n\<Esc>" setlocal ul=10 exe "normal ithree\n\<Esc>" call assert_equal(4, line('$')) undo call assert_equal(3, line('$')) undo 1 call assert_equal(2, line('$')) undo 0 call assert_equal(1, line('$')) quit! endfunc