summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-24 13:34:42 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-24 13:34:42 +0100
commitad36a3588d32985ee27bd11aa97e5195ef623158 (patch)
tree5d7000acd5dd64d990717fb91ceacd47a3a9dce2 /src/ex_docmd.c
parenta5be9b62480a6f338a72c01e57c9edd0bca8048b (diff)
downloadvim-git-ad36a3588d32985ee27bd11aa97e5195ef623158.tar.gz
patch 8.1.0803: session file has problem with single quote in file namev8.1.0803
Problem: Session file has problem with single quote in file name. (Jon Crowe) Solution: Use a double quoted string. Add a test.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index f60bb3492..210fdfa59 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -11838,9 +11838,9 @@ put_view(
* edit that buffer, to not lose folding information (:edit resets
* folds in other buffers)
*/
- if (fputs("if bufexists('", fd) < 0
+ if (fputs("if bufexists(\"", fd) < 0
|| ses_fname(fd, wp->w_buffer, flagp, FALSE) == FAIL
- || fputs("') | buffer ", fd) < 0
+ || fputs("\") | buffer ", fd) < 0
|| ses_fname(fd, wp->w_buffer, flagp, FALSE) == FAIL
|| fputs(" | else | edit ", fd) < 0
|| ses_fname(fd, wp->w_buffer, flagp, FALSE) == FAIL