lkundrak / rpms / vim

Forked from rpms/vim 4 years ago
Clone
91781db
To: vim_dev@googlegroups.com
91781db
Subject: Patch 7.4.234
91781db
Fcc: outbox
91781db
From: Bram Moolenaar <Bram@moolenaar.net>
91781db
Mime-Version: 1.0
91781db
Content-Type: text/plain; charset=UTF-8
91781db
Content-Transfer-Encoding: 8bit
91781db
------------
91781db
91781db
Patch 7.4.234
91781db
Problem:    Can't get the command that was used to start Vim.
91781db
Solution:   Add v:progpath. (Viktor Kojouharov)
91781db
Files:	    runtime/doc/eval.txt, src/eval.c, src/main.c, src/vim.h
91781db
91781db
91781db
*** ../vim-7.4.233/runtime/doc/eval.txt	2014-03-25 18:23:27.054087691 +0100
91781db
--- runtime/doc/eval.txt	2014-04-01 19:33:25.516805743 +0200
91781db
***************
91781db
*** 1557,1562 ****
91781db
--- 1558,1569 ----
91781db
  		|evim| etc., or any other name you might symlink to Vim.
91781db
  		Read-only.
91781db
  
91781db
+ 					*v:progpath* *progpath-variable*
91781db
+ v:progpath	Contains the command with which Vim was invoked, including the
91781db
+ 		path.  Useful if you want to message a Vim server using a
91781db
+ 		|--remote-expr|.
91781db
+ 		Read-only.
91781db
+ 
91781db
  					*v:register* *register-variable*
91781db
  v:register	The name of the register in effect for the current normal mode
91781db
  		command (regardless of whether that command actually used a
91781db
*** ../vim-7.4.233/src/eval.c	2014-03-30 16:49:06.412565288 +0200
91781db
--- src/eval.c	2014-04-01 19:34:13.164805087 +0200
91781db
***************
91781db
*** 361,366 ****
91781db
--- 361,367 ----
91781db
      {VV_NAME("hlsearch",	 VAR_NUMBER), 0},
91781db
      {VV_NAME("oldfiles",	 VAR_LIST), 0},
91781db
      {VV_NAME("windowid",	 VAR_NUMBER), VV_RO},
91781db
+     {VV_NAME("progpath",	 VAR_STRING), VV_RO},
91781db
  };
91781db
  
91781db
  /* shorthand */
91781db
*** ../vim-7.4.233/src/main.c	2014-03-23 15:12:29.923264336 +0100
91781db
--- src/main.c	2014-04-01 19:34:13.164805087 +0200
91781db
***************
91781db
*** 1602,1607 ****
91781db
--- 1602,1608 ----
91781db
  
91781db
  #ifdef FEAT_EVAL
91781db
      set_vim_var_string(VV_PROGNAME, initstr, -1);
91781db
+     set_vim_var_string(VV_PROGPATH, (char_u *)parmp->argv[0], -1);
91781db
  #endif
91781db
  
91781db
      if (TOLOWER_ASC(initstr[0]) == 'r')
91781db
*** ../vim-7.4.233/src/vim.h	2014-03-24 19:43:56.600837795 +0100
91781db
--- src/vim.h	2014-04-01 19:34:13.164805087 +0200
91781db
***************
91781db
*** 1880,1886 ****
91781db
  #define VV_HLSEARCH	54
91781db
  #define VV_OLDFILES	55
91781db
  #define VV_WINDOWID	56
91781db
! #define VV_LEN		57	/* number of v: vars */
91781db
  
91781db
  #ifdef FEAT_CLIPBOARD
91781db
  
91781db
--- 1880,1887 ----
91781db
  #define VV_HLSEARCH	54
91781db
  #define VV_OLDFILES	55
91781db
  #define VV_WINDOWID	56
91781db
! #define VV_PROGPATH	57
91781db
! #define VV_LEN		58	/* number of v: vars */
91781db
  
91781db
  #ifdef FEAT_CLIPBOARD
91781db
  
91781db
*** ../vim-7.4.233/src/version.c	2014-04-01 18:54:44.316837673 +0200
91781db
--- src/version.c	2014-04-01 19:28:05.092810150 +0200
91781db
***************
91781db
*** 736,737 ****
91781db
--- 736,739 ----
91781db
  {   /* Add new patch number below this line */
91781db
+ /**/
91781db
+     234,
91781db
  /**/
91781db
91781db
-- 
91781db
hundred-and-one symptoms of being an internet addict:
91781db
18. Your wife drapes a blond wig over your monitor to remind you of what she
91781db
    looks like.
91781db
91781db
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
91781db
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
91781db
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
91781db
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///