diff options
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index ae89d341be..bc95980afe 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -382,7 +382,7 @@ int main(int argc, char **argv) * Read in registers, history etc, from the ShaDa file. * This is where v:oldfiles gets filled. */ - if (*p_viminfo != NUL) { + if (*p_shada != NUL) { (void) shada_read_file(NULL, (kShaDaWantInfo | kShaDaGetOldfiles | kShaDaWantMarks)); @@ -807,8 +807,8 @@ void getout(int exitval) apply_autocmds(EVENT_VIMLEAVEPRE, NULL, NULL, FALSE, curbuf); } - if (p_viminfo && *p_viminfo != NUL) { - // Write out the registers, history, marks etc, to the viminfo file + if (p_shada && *p_shada != NUL) { + // Write out the registers, history, marks etc, to the ShaDa file shada_write_file(NULL, false); } |