From 9cf9c4a5860212cc0f9b71d349849811fdaf61a1 Mon Sep 17 00:00:00 2001 From: ZyX Date: Mon, 6 Jul 2015 02:16:05 +0300 Subject: Replace references to viminfo in various places --- src/nvim/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nvim/main.c') 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); } -- cgit