Karsten Hopp 930bb9
To: vim_dev@googlegroups.com
Karsten Hopp 930bb9
Subject: Patch 7.4.784
Karsten Hopp 930bb9
Fcc: outbox
Karsten Hopp 930bb9
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 930bb9
Mime-Version: 1.0
Karsten Hopp 930bb9
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 930bb9
Content-Transfer-Encoding: 8bit
Karsten Hopp 930bb9
------------
Karsten Hopp 930bb9
Karsten Hopp 930bb9
Patch 7.4.784
Karsten Hopp 930bb9
Problem:    Using both "noinsert" and "noselect" in 'completeopt' does not
Karsten Hopp 930bb9
            work properly.
Karsten Hopp 930bb9
Solution:   Change the ins_complete() calls. (Ozaki Kiichi)
Karsten Hopp 930bb9
Files:      src/edit.c
Karsten Hopp 930bb9
Karsten Hopp 930bb9
Karsten Hopp 930bb9
*** ../vim-7.4.783/src/edit.c	2015-07-10 18:18:35.575206298 +0200
Karsten Hopp 930bb9
--- src/edit.c	2015-07-17 13:36:48.597498614 +0200
Karsten Hopp 930bb9
***************
Karsten Hopp 930bb9
*** 2794,2809 ****
Karsten Hopp 930bb9
  
Karsten Hopp 930bb9
      compl_curr_match = compl_first_match;
Karsten Hopp 930bb9
      if (compl_no_insert)
Karsten Hopp 930bb9
!     {
Karsten Hopp 930bb9
! 	if (!compl_no_select)
Karsten Hopp 930bb9
! 	    ins_complete(K_DOWN);
Karsten Hopp 930bb9
!     }
Karsten Hopp 930bb9
      else
Karsten Hopp 930bb9
-     {
Karsten Hopp 930bb9
  	ins_complete(Ctrl_N);
Karsten Hopp 930bb9
! 	if (compl_no_select)
Karsten Hopp 930bb9
! 	    ins_complete(Ctrl_P);
Karsten Hopp 930bb9
!     }
Karsten Hopp 930bb9
      out_flush();
Karsten Hopp 930bb9
  }
Karsten Hopp 930bb9
  
Karsten Hopp 930bb9
--- 2794,2804 ----
Karsten Hopp 930bb9
  
Karsten Hopp 930bb9
      compl_curr_match = compl_first_match;
Karsten Hopp 930bb9
      if (compl_no_insert)
Karsten Hopp 930bb9
! 	ins_complete(K_DOWN);
Karsten Hopp 930bb9
      else
Karsten Hopp 930bb9
  	ins_complete(Ctrl_N);
Karsten Hopp 930bb9
!     if (compl_no_select)
Karsten Hopp 930bb9
! 	ins_complete(Ctrl_P);
Karsten Hopp 930bb9
      out_flush();
Karsten Hopp 930bb9
  }
Karsten Hopp 930bb9
  
Karsten Hopp 930bb9
*** ../vim-7.4.783/src/version.c	2015-07-17 13:22:43.161523633 +0200
Karsten Hopp 930bb9
--- src/version.c	2015-07-17 13:39:08.552170118 +0200
Karsten Hopp 930bb9
***************
Karsten Hopp 930bb9
*** 743,744 ****
Karsten Hopp 930bb9
--- 743,746 ----
Karsten Hopp 930bb9
  {   /* Add new patch number below this line */
Karsten Hopp 930bb9
+ /**/
Karsten Hopp 930bb9
+     784,
Karsten Hopp 930bb9
  /**/
Karsten Hopp 930bb9
Karsten Hopp 930bb9
-- 
Karsten Hopp 930bb9
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 930bb9
230. You spend your Friday nights typing away at your keyboard
Karsten Hopp 930bb9
Karsten Hopp 930bb9
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 930bb9
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 930bb9
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 930bb9
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///