mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +00: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:
@@ -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. */
|
||||
|
Reference in New Issue
Block a user