Karsten Hopp 138b94
To: vim_dev@googlegroups.com
Karsten Hopp 138b94
Subject: Patch 7.3.289
Karsten Hopp 138b94
Fcc: outbox
Karsten Hopp 138b94
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 138b94
Mime-Version: 1.0
Karsten Hopp 138b94
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 138b94
Content-Transfer-Encoding: 8bit
Karsten Hopp 138b94
------------
Karsten Hopp 138b94
Karsten Hopp 138b94
Patch 7.3.289
Karsten Hopp 138b94
Problem:    Complete function isn't called when the leader changed.
Karsten Hopp 138b94
Solution:   Call ins_compl_restart() when the leader changed.  (Taro Muraoka)
Karsten Hopp 138b94
Files:	    src/edit.c
Karsten Hopp 138b94
Karsten Hopp 138b94
Karsten Hopp 138b94
*** ../vim-7.3.288/src/edit.c	2011-05-19 17:25:36.000000000 +0200
Karsten Hopp 138b94
--- src/edit.c	2011-08-28 15:53:47.000000000 +0200
Karsten Hopp 138b94
***************
Karsten Hopp 138b94
*** 3367,3372 ****
Karsten Hopp 138b94
--- 3367,3381 ----
Karsten Hopp 138b94
      ins_bytes(compl_leader + ins_compl_len());
Karsten Hopp 138b94
      compl_used_match = FALSE;
Karsten Hopp 138b94
  
Karsten Hopp 138b94
+ #ifdef FEAT_COMPL_FUNC
Karsten Hopp 138b94
+     /*
Karsten Hopp 138b94
+      * To call eval 'completefunc' when leader is changed, restart completion
Karsten Hopp 138b94
+      * every time.
Karsten Hopp 138b94
+      */
Karsten Hopp 138b94
+     if (ctrl_x_mode == CTRL_X_FUNCTION || ctrl_x_mode == CTRL_X_OMNI)
Karsten Hopp 138b94
+         ins_compl_restart();
Karsten Hopp 138b94
+ #endif
Karsten Hopp 138b94
+ 
Karsten Hopp 138b94
      if (compl_started)
Karsten Hopp 138b94
  	ins_compl_set_original_text(compl_leader);
Karsten Hopp 138b94
      else
Karsten Hopp 138b94
*** ../vim-7.3.288/src/version.c	2011-08-28 16:00:14.000000000 +0200
Karsten Hopp 138b94
--- src/version.c	2011-08-28 16:01:22.000000000 +0200
Karsten Hopp 138b94
***************
Karsten Hopp 138b94
*** 711,712 ****
Karsten Hopp 138b94
--- 711,714 ----
Karsten Hopp 138b94
  {   /* Add new patch number below this line */
Karsten Hopp 138b94
+ /**/
Karsten Hopp 138b94
+     289,
Karsten Hopp 138b94
  /**/
Karsten Hopp 138b94
Karsten Hopp 138b94
-- 
Karsten Hopp 138b94
THEOREM: VI is perfect.
Karsten Hopp 138b94
PROOF: VI in roman numerals is 6.  The natural numbers < 6 which divide 6 are
Karsten Hopp 138b94
1, 2, and 3. 1+2+3 = 6.  So 6 is a perfect number.  Therefore, VI is perfect.
Karsten Hopp 138b94
QED
Karsten Hopp 138b94
						    -- Arthur Tateishi
Karsten Hopp 138b94
Karsten Hopp 138b94
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 138b94
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 138b94
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 138b94
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///