We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d9c356 commit 31f19ceCopy full SHA for 31f19ce
src/testdir/test_system.vim
@@ -19,13 +19,21 @@ function! Test_System()
19
call assert_equal('123', system('cat', '123'))
20
call assert_equal(['123'], systemlist('cat', '123'))
21
call assert_equal(["as\<NL>df"], systemlist('cat', ["as\<NL>df"]))
22
+
23
new Xdummy
24
call setline(1, ['asdf', "pw\<NL>er", 'xxxx'])
- call assert_equal("3\n", system('wc -l', bufnr('%')))
25
+ let out = system('wc -l', bufnr('%'))
26
+ " On OS/X we get leading spaces
27
+ let out = substitute(out, '^ *', '', '')
28
+ call assert_equal("3\n", out)
29
30
let out = systemlist('wc -l', bufnr('%'))
31
" On Windows we may get a trailing CR.
32
if out != ["3\r"]
33
34
+ if type(out) == v:t_list
35
+ let out[0] = substitute(out[0], '^ *', '', '')
36
+ endif
37
call assert_equal(['3'], out)
38
endif
39
src/version.c
@@ -764,6 +764,8 @@ static char *(features[]) =
764
765
static int included_patches[] =
766
{ /* Add new patch number below this line */
767
+/**/
768
+ 154,
769
/**/
770
153,
771
0 commit comments