comparison src/main.c @ 20721:70d561931721 v8.2.0913

patch 8.2.0913: code for resetting v:register is duplicated Commit: https://github.com/vim/vim/commit/439c036ed062de1c87cc7e3fe050a9569fb12089 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 6 15:58:03 2020 +0200 patch 8.2.0913: code for resetting v:register is duplicated Problem: Code for resetting v:register is duplicated. Solution: Add reset_reg_var().
author Bram Moolenaar <Bram@vim.org>
date Sat, 06 Jun 2020 16:00:04 +0200
parents c88ebfcbab03
children 1e2e81dbb958
comparison
equal deleted inserted replaced
20720:9160c85995fc 20721:70d561931721
824 #if defined(FEAT_EVAL) && defined(FEAT_CLIPBOARD) 824 #if defined(FEAT_EVAL) && defined(FEAT_CLIPBOARD)
825 // Adjust default register name for "unnamed" in 'clipboard'. Can only be 825 // Adjust default register name for "unnamed" in 'clipboard'. Can only be
826 // done after the clipboard is available and all initial commands that may 826 // done after the clipboard is available and all initial commands that may
827 // modify the 'clipboard' setting have run; i.e. just before entering the 827 // modify the 'clipboard' setting have run; i.e. just before entering the
828 // main loop. 828 // main loop.
829 { 829 reset_reg_var();
830 int default_regname = 0;
831
832 adjust_clip_reg(&default_regname);
833 set_reg_var(default_regname);
834 }
835 #endif 830 #endif
836 831
837 #if defined(FEAT_DIFF) 832 #if defined(FEAT_DIFF)
838 // When a startup script or session file setup for diff'ing and 833 // When a startup script or session file setup for diff'ing and
839 // scrollbind, sync the scrollbind now. 834 // scrollbind, sync the scrollbind now.