Karsten Hopp bdb93b
To: vim_dev@googlegroups.com
Karsten Hopp bdb93b
Subject: Patch 7.4.590
Karsten Hopp bdb93b
Fcc: outbox
Karsten Hopp bdb93b
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp bdb93b
Mime-Version: 1.0
Karsten Hopp bdb93b
Content-Type: text/plain; charset=UTF-8
Karsten Hopp bdb93b
Content-Transfer-Encoding: 8bit
Karsten Hopp bdb93b
------------
Karsten Hopp bdb93b
Karsten Hopp bdb93b
Patch 7.4.590
Karsten Hopp bdb93b
Problem:    Using ctrl_x_mode as if it contains flags.
Karsten Hopp bdb93b
Solution:   Don't use AND with CTRL_X_OMNI. (Hirohito Higashi)
Karsten Hopp bdb93b
Files:	    src/edit.c
Karsten Hopp bdb93b
Karsten Hopp bdb93b
Karsten Hopp bdb93b
*** ../vim-7.4.589/src/edit.c	2014-11-12 18:59:17.602000656 +0100
Karsten Hopp bdb93b
--- src/edit.c	2015-01-20 19:43:45.376745467 +0100
Karsten Hopp bdb93b
***************
Karsten Hopp bdb93b
*** 3394,3400 ****
Karsten Hopp bdb93b
       * allow the word to be deleted, we won't match everything. */
Karsten Hopp bdb93b
      if ((int)(p - line) - (int)compl_col < 0
Karsten Hopp bdb93b
  	    || ((int)(p - line) - (int)compl_col == 0
Karsten Hopp bdb93b
! 		&& (ctrl_x_mode & CTRL_X_OMNI) == 0))
Karsten Hopp bdb93b
  	return K_BS;
Karsten Hopp bdb93b
  
Karsten Hopp bdb93b
      /* Deleted more than what was used to find matches or didn't finish
Karsten Hopp bdb93b
--- 3394,3400 ----
Karsten Hopp bdb93b
       * allow the word to be deleted, we won't match everything. */
Karsten Hopp bdb93b
      if ((int)(p - line) - (int)compl_col < 0
Karsten Hopp bdb93b
  	    || ((int)(p - line) - (int)compl_col == 0
Karsten Hopp bdb93b
! 		&& ctrl_x_mode != CTRL_X_OMNI))
Karsten Hopp bdb93b
  	return K_BS;
Karsten Hopp bdb93b
  
Karsten Hopp bdb93b
      /* Deleted more than what was used to find matches or didn't finish
Karsten Hopp bdb93b
*** ../vim-7.4.589/src/version.c	2015-01-20 19:39:31.655524020 +0100
Karsten Hopp bdb93b
--- src/version.c	2015-01-22 22:40:04.297786215 +0100
Karsten Hopp bdb93b
***************
Karsten Hopp bdb93b
*** 743,744 ****
Karsten Hopp bdb93b
--- 743,746 ----
Karsten Hopp bdb93b
  {   /* Add new patch number below this line */
Karsten Hopp bdb93b
+ /**/
Karsten Hopp bdb93b
+     590,
Karsten Hopp bdb93b
  /**/
Karsten Hopp bdb93b
Karsten Hopp bdb93b
-- 
Karsten Hopp bdb93b
Laughing helps. It's like jogging on the inside.
Karsten Hopp bdb93b
Karsten Hopp bdb93b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp bdb93b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp bdb93b
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp bdb93b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///