0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.0.1289: mkview always includes the local directory

Problem:    Mkview always includes the local directory.
Solution:   Add the "curdir" value in 'viewoptions'. (Eric Roberts, closes
            #2316)
This commit is contained in:
Bram Moolenaar
2017-11-11 18:16:48 +01:00
parent ae147ab2d7
commit 13e904199c
4 changed files with 10 additions and 4 deletions

View File

@@ -11695,9 +11695,11 @@ put_view(
}
/*
* Local directory.
* Local directory, if the current flag is not view options or the "curdir"
* option is included.
*/
if (wp->w_localdir != NULL)
if (wp->w_localdir != NULL
&& (flagp != &vop_flags || (*flagp & SSOP_CURDIR)))
{
if (fputs("lcd ", fd) < 0
|| ses_put_fname(fd, wp->w_localdir, flagp) == FAIL