Karsten Hopp 04df72
To: vim-dev@vim.org
Karsten Hopp 04df72
Subject: Patch 7.2.107
Karsten Hopp 04df72
Fcc: outbox
Karsten Hopp 04df72
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 04df72
Mime-Version: 1.0
Karsten Hopp 04df72
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 04df72
Content-Transfer-Encoding: 8bit
Karsten Hopp 04df72
------------
Karsten Hopp 04df72
Karsten Hopp 04df72
Patch 7.2.107
Karsten Hopp 04df72
Problem:    When using a GUI dialog and ":echo" commands the messages are
Karsten Hopp 04df72
	    deleted after the dialog. (Vicent Birebent)
Karsten Hopp 04df72
Solution:   Don't call msg_end_prompt() since there was no prompt.
Karsten Hopp 04df72
Files:	    src/message.c
Karsten Hopp 04df72
Karsten Hopp 04df72
Karsten Hopp 04df72
*** ../vim-7.2.106/src/message.c	Tue Jan 13 16:37:31 2009
Karsten Hopp 04df72
--- src/message.c	Wed Feb 11 18:38:14 2009
Karsten Hopp 04df72
***************
Karsten Hopp 04df72
*** 3309,3315 ****
Karsten Hopp 04df72
      {
Karsten Hopp 04df72
  	c = gui_mch_dialog(type, title, message, buttons, dfltbutton,
Karsten Hopp 04df72
  								   textfield);
Karsten Hopp 04df72
! 	msg_end_prompt();
Karsten Hopp 04df72
  
Karsten Hopp 04df72
  	/* Flush output to avoid that further messages and redrawing is done
Karsten Hopp 04df72
  	 * in the wrong order. */
Karsten Hopp 04df72
--- 3309,3318 ----
Karsten Hopp 04df72
      {
Karsten Hopp 04df72
  	c = gui_mch_dialog(type, title, message, buttons, dfltbutton,
Karsten Hopp 04df72
  								   textfield);
Karsten Hopp 04df72
! 	/* avoid a hit-enter prompt without clearing the cmdline */
Karsten Hopp 04df72
! 	need_wait_return = FALSE;
Karsten Hopp 04df72
! 	emsg_on_display = FALSE;
Karsten Hopp 04df72
! 	cmdline_row = msg_row;
Karsten Hopp 04df72
  
Karsten Hopp 04df72
  	/* Flush output to avoid that further messages and redrawing is done
Karsten Hopp 04df72
  	 * in the wrong order. */
Karsten Hopp 04df72
*** ../vim-7.2.106/src/version.c	Wed Feb 11 17:57:43 2009
Karsten Hopp 04df72
--- src/version.c	Wed Feb 11 18:46:12 2009
Karsten Hopp 04df72
***************
Karsten Hopp 04df72
*** 678,679 ****
Karsten Hopp 04df72
--- 678,681 ----
Karsten Hopp 04df72
  {   /* Add new patch number below this line */
Karsten Hopp 04df72
+ /**/
Karsten Hopp 04df72
+     107,
Karsten Hopp 04df72
  /**/
Karsten Hopp 04df72
Karsten Hopp 04df72
-- 
Karsten Hopp 04df72
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 04df72
79. All of your most erotic dreams have a scrollbar at the right side.
Karsten Hopp 04df72
Karsten Hopp 04df72
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 04df72
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 04df72
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 04df72
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///