Mercurial > vim
comparison src/ex_docmd.c @ 12824:79a754456110 v8.0.1289
patch 8.0.1289: mkview always includes the local directory
commit https://github.com/vim/vim/commit/13e904199c2af6aac9b289a7f520d8e16f6e478a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 11 18:16:48 2017 +0100
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 11 Nov 2017 18:30:06 +0100 |
parents | 9b882316aa63 |
children | a80082fd1a1d |
comparison
equal
deleted
inserted
replaced
12823:358131b55d36 | 12824:79a754456110 |
---|---|
11693 } | 11693 } |
11694 } | 11694 } |
11695 } | 11695 } |
11696 | 11696 |
11697 /* | 11697 /* |
11698 * Local directory. | 11698 * Local directory, if the current flag is not view options or the "curdir" |
11699 * option is included. | |
11699 */ | 11700 */ |
11700 if (wp->w_localdir != NULL) | 11701 if (wp->w_localdir != NULL |
11702 && (flagp != &vop_flags || (*flagp & SSOP_CURDIR))) | |
11701 { | 11703 { |
11702 if (fputs("lcd ", fd) < 0 | 11704 if (fputs("lcd ", fd) < 0 |
11703 || ses_put_fname(fd, wp->w_localdir, flagp) == FAIL | 11705 || ses_put_fname(fd, wp->w_localdir, flagp) == FAIL |
11704 || put_eol(fd) == FAIL) | 11706 || put_eol(fd) == FAIL) |
11705 return FAIL; | 11707 return FAIL; |