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.
This commit is contained in:
ZyX 2015-04-28 22:42:00 +03:00
parent 38c688d7be
commit 5e34d4873b

View File

@ -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. */