diff options
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 7408a7926a..31070c1118 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -14086,18 +14086,7 @@ static void f_system(typval_T *argvars, typval_T *rettv) res = get_cmd_output(get_tv_string(&argvars[0]), infile, kShellOptSilent | kShellOptCooked); -#ifdef USE_CR - /* translate <CR> into <NL> */ - if (res != NULL) { - char_u *s; - - for (s = res; *s; ++s) { - if (*s == CAR) - *s = NL; - } - } -#else -# ifdef USE_CRNL +#ifdef USE_CRNL /* translate <CR><NL> into <NL> */ if (res != NULL) { char_u *s, *d; @@ -14110,7 +14099,6 @@ static void f_system(typval_T *argvars, typval_T *rettv) } *d = NUL; } -# endif #endif done: |