Karsten Hopp 98dbbb
To: vim_dev@googlegroups.com
Karsten Hopp 98dbbb
Subject: Patch 7.3.483
Karsten Hopp 98dbbb
Fcc: outbox
Karsten Hopp 98dbbb
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 98dbbb
Mime-Version: 1.0
Karsten Hopp 98dbbb
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 98dbbb
Content-Transfer-Encoding: 8bit
Karsten Hopp 98dbbb
------------
Karsten Hopp 98dbbb
Karsten Hopp 98dbbb
Patch 7.3.483  (after 7.3.477)
Karsten Hopp 98dbbb
Problem:    More prompt shows up too often.
Karsten Hopp 98dbbb
Solution:   Instead of adding a line break, only start a new line in the
Karsten Hopp 98dbbb
	    message history. (Christian Brabandt)
Karsten Hopp 98dbbb
Files:	    src/eval.c, src/message.c, src/proto/message.pro
Karsten Hopp 98dbbb
Karsten Hopp 98dbbb
Karsten Hopp 98dbbb
*** ../vim-7.3.482/src/eval.c	2012-03-23 15:36:57.000000000 +0100
Karsten Hopp 98dbbb
--- src/eval.c	2012-03-28 16:41:03.000000000 +0200
Karsten Hopp 98dbbb
***************
Karsten Hopp 98dbbb
*** 20493,20501 ****
Karsten Hopp 98dbbb
  		 * may cause a message to appear. */
Karsten Hopp 98dbbb
  		if (eap->cmdidx == CMD_echo)
Karsten Hopp 98dbbb
  		{
Karsten Hopp 98dbbb
! 		    /* Put the output below the command, makes scrolling back
Karsten Hopp 98dbbb
! 		     * at more prompt work. */
Karsten Hopp 98dbbb
! 		    msg_didout = TRUE;
Karsten Hopp 98dbbb
  		    msg_start();
Karsten Hopp 98dbbb
  		}
Karsten Hopp 98dbbb
  	    }
Karsten Hopp 98dbbb
--- 20493,20502 ----
Karsten Hopp 98dbbb
  		 * may cause a message to appear. */
Karsten Hopp 98dbbb
  		if (eap->cmdidx == CMD_echo)
Karsten Hopp 98dbbb
  		{
Karsten Hopp 98dbbb
! 		    /* Mark the saved text as finishing the line, so that what
Karsten Hopp 98dbbb
! 		     * follows is displayed on a new line when scrolling back
Karsten Hopp 98dbbb
! 		     * at the more prompt. */
Karsten Hopp 98dbbb
! 		    msg_sb_eol();
Karsten Hopp 98dbbb
  		    msg_start();
Karsten Hopp 98dbbb
  		}
Karsten Hopp 98dbbb
  	    }
Karsten Hopp 98dbbb
*** ../vim-7.3.482/src/message.c	2012-01-26 13:01:54.000000000 +0100
Karsten Hopp 98dbbb
--- src/message.c	2012-03-28 16:35:26.000000000 +0200
Karsten Hopp 98dbbb
***************
Karsten Hopp 98dbbb
*** 2348,2353 ****
Karsten Hopp 98dbbb
--- 2348,2363 ----
Karsten Hopp 98dbbb
  }
Karsten Hopp 98dbbb
  
Karsten Hopp 98dbbb
  /*
Karsten Hopp 98dbbb
+  * Mark the last message chunk as finishing the line.
Karsten Hopp 98dbbb
+  */
Karsten Hopp 98dbbb
+     void
Karsten Hopp 98dbbb
+ msg_sb_eol()
Karsten Hopp 98dbbb
+ {
Karsten Hopp 98dbbb
+     if (last_msgchunk != NULL)
Karsten Hopp 98dbbb
+ 	last_msgchunk->sb_eol = TRUE;
Karsten Hopp 98dbbb
+ }
Karsten Hopp 98dbbb
+ 
Karsten Hopp 98dbbb
+ /*
Karsten Hopp 98dbbb
   * Display a screen line from previously displayed text at row "row".
Karsten Hopp 98dbbb
   * Returns a pointer to the text for the next line (can be NULL).
Karsten Hopp 98dbbb
   */
Karsten Hopp 98dbbb
*** ../vim-7.3.482/src/proto/message.pro	2012-01-20 20:44:38.000000000 +0100
Karsten Hopp 98dbbb
--- src/proto/message.pro	2012-03-28 16:35:33.000000000 +0200
Karsten Hopp 98dbbb
***************
Karsten Hopp 98dbbb
*** 45,50 ****
Karsten Hopp 98dbbb
--- 45,51 ----
Karsten Hopp 98dbbb
  void may_clear_sb_text __ARGS((void));
Karsten Hopp 98dbbb
  void clear_sb_text __ARGS((void));
Karsten Hopp 98dbbb
  void show_sb_text __ARGS((void));
Karsten Hopp 98dbbb
+ void msg_sb_eol __ARGS((void));
Karsten Hopp 98dbbb
  int msg_use_printf __ARGS((void));
Karsten Hopp 98dbbb
  void mch_errmsg __ARGS((char *str));
Karsten Hopp 98dbbb
  void mch_msg __ARGS((char *str));
Karsten Hopp 98dbbb
*** ../vim-7.3.482/src/version.c	2012-03-28 14:19:46.000000000 +0200
Karsten Hopp 98dbbb
--- src/version.c	2012-03-28 16:48:53.000000000 +0200
Karsten Hopp 98dbbb
***************
Karsten Hopp 98dbbb
*** 716,717 ****
Karsten Hopp 98dbbb
--- 716,719 ----
Karsten Hopp 98dbbb
  {   /* Add new patch number below this line */
Karsten Hopp 98dbbb
+ /**/
Karsten Hopp 98dbbb
+     483,
Karsten Hopp 98dbbb
  /**/
Karsten Hopp 98dbbb
Karsten Hopp 98dbbb
-- 
Karsten Hopp 98dbbb
       We're knights of the Round Table
Karsten Hopp 98dbbb
       Our shows are formidable
Karsten Hopp 98dbbb
       But many times
Karsten Hopp 98dbbb
       We're given rhymes
Karsten Hopp 98dbbb
       That are quite unsingable
Karsten Hopp 98dbbb
       We're opera mad in Camelot
Karsten Hopp 98dbbb
       We sing from the diaphragm a lot.
Karsten Hopp 98dbbb
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 98dbbb
Karsten Hopp 98dbbb
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 98dbbb
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 98dbbb
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 98dbbb
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///