diff src/edit.c @ 9465:203792348947 v7.4.2013

commit https://github.com/vim/vim/commit/67081e50616ae9546621072c5eaaa59bd0a4bed7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 9 21:49:03 2016 +0200 patch 7.4.2013 Problem: Using "noinsert" in 'completeopt' breaks redo. Solution: Set compl_curr_match. (Shougo, closes https://github.com/vim/vim/issues/874)
author Christian Brabandt <cb@256bit.org>
date Sat, 09 Jul 2016 22:00:06 +0200
parents 35b173e37dc6
children 5fb484647e12
line wrap: on
line diff
--- a/src/edit.c
+++ b/src/edit.c
@@ -4680,6 +4680,7 @@ ins_compl_insert(void)
 		    EMPTY_IF_NULL(compl_shown_match->cp_text[CPT_INFO]));
     }
     set_vim_var_dict(VV_COMPLETED_ITEM, dict);
+    compl_curr_match = compl_shown_match;
 }
 
 /*