mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
38c688d7be
commit
5e34d4873b
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user