mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
eval: re-remove USE_CR #1002
It was already removed in 01ca460
and I erroneously introduced it again in
PR #978.
This commit is contained in:
parent
4bebbaa572
commit
5f9fb6ed64
@ -14099,16 +14099,7 @@ static void f_system(typval_T *argvars, typval_T *rettv)
|
|||||||
|
|
||||||
set_vim_var_nr(VV_SHELL_ERROR, (long) status);
|
set_vim_var_nr(VV_SHELL_ERROR, (long) status);
|
||||||
|
|
||||||
#if defined(USE_CR)
|
#ifdef USE_CRNL
|
||||||
// translate <CR> into <NL>
|
|
||||||
if (res != NULL) {
|
|
||||||
for (char *s = res; *s; ++s) {
|
|
||||||
if (*s == CAR) {
|
|
||||||
*s = NL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#elif defined(USE_CRNL)
|
|
||||||
// translate <CR><NL> into <NL>
|
// translate <CR><NL> into <NL>
|
||||||
if (res != NULL) {
|
if (res != NULL) {
|
||||||
char *d = res;
|
char *d = res;
|
||||||
|
Loading…
Reference in New Issue
Block a user