diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2023-11-29 18:49:30 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2023-11-29 18:49:30 -0700 |
commit | e70fdd00f1cd96c364fe894af61ee5947991414e (patch) | |
tree | bde3942d3b01c891166bd02da164797b140f7055 /src | |
parent | 0bd3cd90d902a1419db129427980ad7af1650d50 (diff) | |
parent | 62dff439479315558cd08dedbca61be5fafcc938 (diff) | |
download | rneovim-fix_20726.tar.gz rneovim-fix_20726.tar.bz2 rneovim-fix_20726.zip |
Merge remote-tracking branch 'upstream/master' into fix_20726fix_20726
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_docmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 0b466bbe4e..245121f4af 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -7424,7 +7424,9 @@ static void ex_terminal(exarg_T *eap) char shell_argv[512] = { 0 }; while (*p != NULL) { - snprintf(tempstring, sizeof(tempstring), ",\"%s\"", *p); + char *escaped = vim_strsave_escaped(*p, "\"\\"); + snprintf(tempstring, sizeof(tempstring), ",\"%s\"", escaped); + xfree(escaped); xstrlcat(shell_argv, tempstring, sizeof(shell_argv)); p++; } |