diff options
author | oni-link <knil.ino@gmail.com> | 2014-04-12 23:04:49 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-14 09:54:40 -0300 |
commit | a881273dad5eb5d1f5efa8da79704c9cf9abf0e0 (patch) | |
tree | 4c4fc1aeb736aae65758d0cce609f719c7042d37 /src/normal.c | |
parent | 644ccdafe01df76c47f2a6c74a4a55f64602e3db (diff) | |
download | rneovim-a881273dad5eb5d1f5efa8da79704c9cf9abf0e0.tar.gz rneovim-a881273dad5eb5d1f5efa8da79704c9cf9abf0e0.tar.bz2 rneovim-a881273dad5eb5d1f5efa8da79704c9cf9abf0e0.zip |
vim-patch:7.4.191
Problem: Escaping a file name for shell commands can't be done without a
function.
Solution: Add the :S file name modifier.
https://code.google.com/p/vim/source/detail?r=40f18a1c1592c8b4047f6f2a413557f48a99c55f
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/normal.c b/src/normal.c index 6aab7a9d3d..094bb9fe94 100644 --- a/src/normal.c +++ b/src/normal.c @@ -4493,12 +4493,8 @@ static void nv_ident(cmdarg_T *cap) if (cmdchar == 'K' && !kp_help) { /* Escape the argument properly for a shell command */ ptr = vim_strnsave(ptr, n); - p = vim_strsave_shellescape(ptr, TRUE); + p = vim_strsave_shellescape(ptr, true, true); vim_free(ptr); - if (p == NULL) { - vim_free(buf); - return; - } newbuf = (char_u *)xrealloc(buf, STRLEN(buf) + STRLEN(p) + 1); buf = newbuf; STRCAT(buf, p); |