Karsten Hopp 44670e
To: vim_dev@googlegroups.com
Karsten Hopp 44670e
Subject: Patch 7.4.275
Karsten Hopp 44670e
Fcc: outbox
Karsten Hopp 44670e
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 44670e
Mime-Version: 1.0
Karsten Hopp 44670e
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 44670e
Content-Transfer-Encoding: 8bit
Karsten Hopp 44670e
------------
Karsten Hopp 44670e
Karsten Hopp 44670e
Patch 7.4.275
Karsten Hopp 44670e
Problem:    When changing the type of a sign that hasn't been placed ther is
Karsten Hopp 44670e
	    no error message.
Karsten Hopp 44670e
Solution:   Add an error message. (Christian Brabandt)
Karsten Hopp 44670e
Files:	    src/ex_cmds.c
Karsten Hopp 44670e
Karsten Hopp 44670e
Karsten Hopp 44670e
*** ../vim-7.4.274/src/ex_cmds.c	2014-04-29 12:15:22.856032651 +0200
Karsten Hopp 44670e
--- src/ex_cmds.c	2014-05-07 14:38:31.293091622 +0200
Karsten Hopp 44670e
***************
Karsten Hopp 44670e
*** 7275,7281 ****
Karsten Hopp 44670e
  	    else
Karsten Hopp 44670e
  		/* ":sign place {id} file={fname}": change sign type */
Karsten Hopp 44670e
  		lnum = buf_change_sign_type(buf, id, sp->sn_typenr);
Karsten Hopp 44670e
! 	    update_debug_sign(buf, lnum);
Karsten Hopp 44670e
  	}
Karsten Hopp 44670e
  	else
Karsten Hopp 44670e
  	    EMSG(_(e_invarg));
Karsten Hopp 44670e
--- 7275,7284 ----
Karsten Hopp 44670e
  	    else
Karsten Hopp 44670e
  		/* ":sign place {id} file={fname}": change sign type */
Karsten Hopp 44670e
  		lnum = buf_change_sign_type(buf, id, sp->sn_typenr);
Karsten Hopp 44670e
! 	    if (lnum > 0)
Karsten Hopp 44670e
! 		update_debug_sign(buf, lnum);
Karsten Hopp 44670e
! 	    else
Karsten Hopp 44670e
! 		EMSG2(_("E885: Not possible to change sign %s"), sign_name);
Karsten Hopp 44670e
  	}
Karsten Hopp 44670e
  	else
Karsten Hopp 44670e
  	    EMSG(_(e_invarg));
Karsten Hopp 44670e
*** ../vim-7.4.274/src/version.c	2014-05-02 15:46:10.731268318 +0200
Karsten Hopp 44670e
--- src/version.c	2014-05-07 14:18:32.581081129 +0200
Karsten Hopp 44670e
***************
Karsten Hopp 44670e
*** 736,737 ****
Karsten Hopp 44670e
--- 736,739 ----
Karsten Hopp 44670e
  {   /* Add new patch number below this line */
Karsten Hopp 44670e
+ /**/
Karsten Hopp 44670e
+     275,
Karsten Hopp 44670e
  /**/
Karsten Hopp 44670e
Karsten Hopp 44670e
-- 
Karsten Hopp 44670e
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 44670e
117. You are more comfortable typing in html.
Karsten Hopp 44670e
Karsten Hopp 44670e
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 44670e
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 44670e
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 44670e
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///