From 5e34d4873b760e038093596e5d44fa0e8ee20036 Mon Sep 17 00:00:00 2001 From: ZyX Date: Tue, 28 Apr 2015 22:42:00 +0300 Subject: [PATCH] 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. --- src/nvim/main.c | 6 ++++-- 1 file 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. */