aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2015-07-06 02:16:05 +0300
committerZyX <kp-pav@yandex.ru>2015-10-08 22:00:06 +0300
commit9cf9c4a5860212cc0f9b71d349849811fdaf61a1 (patch)
tree82335adcdca0627d7c615ee198a19ec63170a959 /src/nvim/main.c
parent749cae866278469d11e6ec467dd0e98ab6233439 (diff)
downloadrneovim-9cf9c4a5860212cc0f9b71d349849811fdaf61a1.tar.gz
rneovim-9cf9c4a5860212cc0f9b71d349849811fdaf61a1.tar.bz2
rneovim-9cf9c4a5860212cc0f9b71d349849811fdaf61a1.zip
Replace references to viminfo in various places
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r--src/nvim/main.c6
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);
}