Karsten Hopp dd2a1c
To: vim_dev@googlegroups.com
Karsten Hopp dd2a1c
Subject: Patch 7.4.482
Karsten Hopp dd2a1c
Fcc: outbox
Karsten Hopp dd2a1c
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp dd2a1c
Mime-Version: 1.0
Karsten Hopp dd2a1c
Content-Type: text/plain; charset=UTF-8
Karsten Hopp dd2a1c
Content-Transfer-Encoding: 8bit
Karsten Hopp dd2a1c
------------
Karsten Hopp dd2a1c
Karsten Hopp dd2a1c
Patch 7.4.482
Karsten Hopp dd2a1c
Problem:    When 'balloonexpr' results in a list, the text has a trailing
Karsten Hopp dd2a1c
	    newline. (Lcd)
Karsten Hopp dd2a1c
Solution:   Remove one trailing newline.
Karsten Hopp dd2a1c
Files:	    src/gui_beval.c
Karsten Hopp dd2a1c
Karsten Hopp dd2a1c
Karsten Hopp dd2a1c
*** ../vim-7.4.481/src/gui_beval.c	2014-06-25 17:44:45.850768919 +0200
Karsten Hopp dd2a1c
--- src/gui_beval.c	2014-10-21 14:12:13.915158215 +0200
Karsten Hopp dd2a1c
***************
Karsten Hopp dd2a1c
*** 30,35 ****
Karsten Hopp dd2a1c
--- 30,36 ----
Karsten Hopp dd2a1c
      long	winnr = 0;
Karsten Hopp dd2a1c
      char_u	*bexpr;
Karsten Hopp dd2a1c
      buf_T	*save_curbuf;
Karsten Hopp dd2a1c
+     size_t	len;
Karsten Hopp dd2a1c
  # ifdef FEAT_WINDOWS
Karsten Hopp dd2a1c
      win_T	*cw;
Karsten Hopp dd2a1c
  # endif
Karsten Hopp dd2a1c
***************
Karsten Hopp dd2a1c
*** 83,88 ****
Karsten Hopp dd2a1c
--- 84,99 ----
Karsten Hopp dd2a1c
  	    vim_free(result);
Karsten Hopp dd2a1c
  	    result = eval_to_string(bexpr, NULL, TRUE);
Karsten Hopp dd2a1c
  
Karsten Hopp dd2a1c
+ 	    /* Remove one trailing newline, it is added when the result was a
Karsten Hopp dd2a1c
+ 	     * list and it's hardly every useful.  If the user really wants a
Karsten Hopp dd2a1c
+ 	     * trailing newline he can add two and one remains. */
Karsten Hopp dd2a1c
+ 	    if (result != NULL)
Karsten Hopp dd2a1c
+ 	    {
Karsten Hopp dd2a1c
+ 		len = STRLEN(result);
Karsten Hopp dd2a1c
+ 		if (len > 0 && result[len - 1] == NL)
Karsten Hopp dd2a1c
+ 		    result[len - 1] = NUL;
Karsten Hopp dd2a1c
+ 	    }
Karsten Hopp dd2a1c
+ 
Karsten Hopp dd2a1c
  	    if (use_sandbox)
Karsten Hopp dd2a1c
  		--sandbox;
Karsten Hopp dd2a1c
  	    --textlock;
Karsten Hopp dd2a1c
*** ../vim-7.4.481/src/version.c	2014-10-16 20:35:32.146264814 +0200
Karsten Hopp dd2a1c
--- src/version.c	2014-10-21 14:13:19.571158359 +0200
Karsten Hopp dd2a1c
***************
Karsten Hopp dd2a1c
*** 743,744 ****
Karsten Hopp dd2a1c
--- 743,746 ----
Karsten Hopp dd2a1c
  {   /* Add new patch number below this line */
Karsten Hopp dd2a1c
+ /**/
Karsten Hopp dd2a1c
+     482,
Karsten Hopp dd2a1c
  /**/
Karsten Hopp dd2a1c
Karsten Hopp dd2a1c
-- 
Karsten Hopp dd2a1c
You cannot propel yourself forward by patting yourself on the back.
Karsten Hopp dd2a1c
Karsten Hopp dd2a1c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp dd2a1c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp dd2a1c
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp dd2a1c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///