diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-06 15:58:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-06 15:58:03 +0200 |
commit | 439c036ed062de1c87cc7e3fe050a9569fb12089 (patch) | |
tree | 4c1f4caab4864e5c5d101fb2c18f59459eb86ab4 /src/main.c | |
parent | 11f1ffd18282c44ca4b74cf7cf336da6d09e396d (diff) | |
download | vim-git-439c036ed062de1c87cc7e3fe050a9569fb12089.tar.gz |
patch 8.2.0913: code for resetting v:register is duplicatedv8.2.0913
Problem: Code for resetting v:register is duplicated.
Solution: Add reset_reg_var().
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c index 201ed3721..d66cd0c88 100644 --- a/src/main.c +++ b/src/main.c @@ -826,12 +826,7 @@ vim_main2(void) // done after the clipboard is available and all initial commands that may // modify the 'clipboard' setting have run; i.e. just before entering the // main loop. - { - int default_regname = 0; - - adjust_clip_reg(&default_regname); - set_reg_var(default_regname); - } + reset_reg_var(); #endif #if defined(FEAT_DIFF) |