aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2015-04-28 22:42:00 +0300
committerZyX <kp-pav@yandex.ru>2015-10-08 21:59:52 +0300
commit5e34d4873b760e038093596e5d44fa0e8ee20036 (patch)
tree678ff03f256d9320ca400f47938192ca7070bf13
parent38c688d7be52439ae5d610ff6deb22a0bff732e7 (diff)
downloadrneovim-5e34d4873b760e038093596e5d44fa0e8ee20036.tar.gz
rneovim-5e34d4873b760e038093596e5d44fa0e8ee20036.tar.bz2
rneovim-5e34d4873b760e038093596e5d44fa0e8ee20036.zip
main: Read marks at startup
I do not know why marks were not read originally, but without this change marks are not going to be read at startup when Vim starts without arguments.
-rw-r--r--src/nvim/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index 0e25d6d4ec..ae89d341be 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -379,11 +379,13 @@ int main(int argc, char **argv)
}
/*
- * Read in registers, history etc, but not marks, from the ShaDa file.
+ * Read in registers, history etc, from the ShaDa file.
* This is where v:oldfiles gets filled.
*/
if (*p_viminfo != NUL) {
- (void) shada_read_file(NULL, kShaDaWantInfo|kShaDaGetOldfiles);
+ (void) shada_read_file(NULL, (kShaDaWantInfo
+ | kShaDaGetOldfiles
+ | kShaDaWantMarks));
TIME_MSG("reading ShaDa");
}
/* It's better to make v:oldfiles an empty list than NULL. */