99b86a7
To: vim-dev@vim.org
99b86a7
Subject: Patch 7.1.160
99b86a7
Fcc: outbox
99b86a7
From: Bram Moolenaar <Bram@moolenaar.net>
99b86a7
Mime-Version: 1.0
99b86a7
Content-Type: text/plain; charset=ISO-8859-1
99b86a7
Content-Transfer-Encoding: 8bit
99b86a7
------------
99b86a7
99b86a7
Patch 7.1.160
99b86a7
Problem:    When a focus autocommand is defined, getting or losing focus
99b86a7
	    causes the hit-enter prompt to be redrawn. (Bjorn Winckler)
99b86a7
Solution:   Overwrite the last line.
99b86a7
Files:	    src/message.c
99b86a7
99b86a7
99b86a7
*** ../vim-7.1.159/src/message.c	Thu Sep 13 22:04:30 2007
99b86a7
--- src/message.c	Sun Nov  4 17:33:15 2007
99b86a7
***************
99b86a7
*** 2850,2855 ****
99b86a7
--- 2850,2864 ----
99b86a7
      }
99b86a7
      else if (State == HITRETURN || State == SETWSIZE)
99b86a7
      {
99b86a7
+ 	if (msg_row == Rows - 1)
99b86a7
+ 	{
99b86a7
+ 	    /* Avoid drawing the "hit-enter" prompt below the previous one,
99b86a7
+ 	     * overwrite it.  Esp. useful when regaining focus and a
99b86a7
+ 	     * FocusGained autocmd exists but didn't draw anything. */
99b86a7
+ 	    msg_didout = FALSE;
99b86a7
+ 	    msg_col = 0;
99b86a7
+ 	    msg_clr_eos();
99b86a7
+ 	}
99b86a7
  	hit_return_msg();
99b86a7
  	msg_row = Rows - 1;
99b86a7
      }
99b86a7
*** ../vim-7.1.159/src/version.c	Tue Nov 20 18:03:34 2007
99b86a7
--- src/version.c	Sat Nov 24 15:41:43 2007
99b86a7
***************
99b86a7
*** 668,669 ****
99b86a7
--- 668,671 ----
99b86a7
  {   /* Add new patch number below this line */
99b86a7
+ /**/
99b86a7
+     160,
99b86a7
  /**/
99b86a7
99b86a7
-- 
99b86a7
hundred-and-one symptoms of being an internet addict:
99b86a7
142. You dream about creating the world's greatest web site.
99b86a7
99b86a7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
99b86a7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
99b86a7
\\\        download, build and distribute -- http://www.A-A-P.org        ///
99b86a7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///