diff options
author | George Zhao <zhaozg@gmail.com> | 2018-01-17 20:03:01 +0800 |
---|---|---|
committer | George Zhao <zhaozg@gmail.com> | 2018-01-19 13:01:29 +0800 |
commit | e76c6e2ee8b8a064f1f2a48e3638be6ca07f2f2a (patch) | |
tree | e12d52054e0f80590003fdd704b43baa7c2ecaaf /src/nvim/os/pty_process_win.c | |
parent | 2408a05151542da9432bd406c36f92c8bdeef1ec (diff) | |
download | rneovim-e76c6e2ee8b8a064f1f2a48e3638be6ca07f2f2a.tar.gz rneovim-e76c6e2ee8b8a064f1f2a48e3638be6ca07f2f2a.tar.bz2 rneovim-e76c6e2ee8b8a064f1f2a48e3638be6ca07f2f2a.zip |
Fix warning: multi-line comment [-Wcomment] use `:341,355s/: \zs.*/\=string(submatch(0))`
Diffstat (limited to 'src/nvim/os/pty_process_win.c')
-rw-r--r-- | src/nvim/os/pty_process_win.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/nvim/os/pty_process_win.c b/src/nvim/os/pty_process_win.c index c249536536..b90578edb7 100644 --- a/src/nvim/os/pty_process_win.c +++ b/src/nvim/os/pty_process_win.c @@ -339,20 +339,20 @@ static void quote_cmd_arg(char *dest, size_t dest_remaining, const char *src) } // Expected input/output: - // input : hello"world - // output: "hello\"world" - // input : hello""world - // output: "hello\"\"world" - // input : hello\world - // output: hello\world - // input : hello\\world - // output: hello\\world - // input : hello\"world - // output: "hello\\\"world" - // input : hello\\"world - // output: "hello\\\\\"world" - // input : hello world\ - // output: "hello world\\" + // input : 'hello"world' + // output: '"hello\"world"' + // input : 'hello""world' + // output: '"hello\"\"world"' + // input : 'hello\world' + // output: 'hello\world' + // input : 'hello\\world' + // output: 'hello\\world' + // input : 'hello\"world' + // output: '"hello\\\"world"' + // input : 'hello\\"world' + // output: '"hello\\\\\"world"' + // input : 'hello world\' + // output: '"hello world\\"' assert(dest_remaining--); *(dest++) = NUL; |