|
Karsten Hopp |
5a9487 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
5a9487 |
Subject: Patch 7.3.171
|
|
Karsten Hopp |
5a9487 |
Fcc: outbox
|
|
Karsten Hopp |
5a9487 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
5a9487 |
Mime-Version: 1.0
|
|
Karsten Hopp |
5a9487 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
5a9487 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
5a9487 |
------------
|
|
Karsten Hopp |
5a9487 |
|
|
Karsten Hopp |
5a9487 |
Patch 7.3.171
|
|
Karsten Hopp |
5a9487 |
Problem: When the clipboard isn't supported: ":yank*" gives a confusing
|
|
Karsten Hopp |
5a9487 |
error message.
|
|
Karsten Hopp |
5a9487 |
Solution: Specifically mention that the register name is invalid.
|
|
Karsten Hopp |
5a9487 |
(Jean-Rene David)
|
|
Karsten Hopp |
5a9487 |
Files: runtime/doc/change.txt, src/ex_docmd.c, src/globals.h
|
|
Karsten Hopp |
5a9487 |
|
|
Karsten Hopp |
5a9487 |
|
|
Karsten Hopp |
5a9487 |
*** ../vim-7.3.170/runtime/doc/change.txt 2010-08-15 21:57:18.000000000 +0200
|
|
Karsten Hopp |
5a9487 |
--- runtime/doc/change.txt 2011-05-05 13:48:00.000000000 +0200
|
|
Karsten Hopp |
5a9487 |
***************
|
|
Karsten Hopp |
5a9487 |
*** 916,923 ****
|
|
Karsten Hopp |
5a9487 |
{Visual}["x]Y Yank the highlighted lines [into register x] (for
|
|
Karsten Hopp |
5a9487 |
{Visual} see |Visual-mode|). {not in Vi}
|
|
Karsten Hopp |
5a9487 |
|
|
Karsten Hopp |
5a9487 |
! *:y* *:yank*
|
|
Karsten Hopp |
5a9487 |
! :[range]y[ank] [x] Yank [range] lines [into register x].
|
|
Karsten Hopp |
5a9487 |
|
|
Karsten Hopp |
5a9487 |
:[range]y[ank] [x] {count}
|
|
Karsten Hopp |
5a9487 |
Yank {count} lines, starting with last line number
|
|
Karsten Hopp |
5a9487 |
--- 917,926 ----
|
|
Karsten Hopp |
5a9487 |
{Visual}["x]Y Yank the highlighted lines [into register x] (for
|
|
Karsten Hopp |
5a9487 |
{Visual} see |Visual-mode|). {not in Vi}
|
|
Karsten Hopp |
5a9487 |
|
|
Karsten Hopp |
5a9487 |
! *:y* *:yank* *E850*
|
|
Karsten Hopp |
5a9487 |
! :[range]y[ank] [x] Yank [range] lines [into register x]. Yanking to the
|
|
Karsten Hopp |
5a9487 |
! "* or "+ registers is possible only in GUI versions or
|
|
Karsten Hopp |
5a9487 |
! when the |+xterm_clipboard| feature is included.
|
|
Karsten Hopp |
5a9487 |
|
|
Karsten Hopp |
5a9487 |
:[range]y[ank] [x] {count}
|
|
Karsten Hopp |
5a9487 |
Yank {count} lines, starting with last line number
|
|
Karsten Hopp |
5a9487 |
*** ../vim-7.3.170/src/ex_docmd.c 2011-04-11 21:35:03.000000000 +0200
|
|
Karsten Hopp |
5a9487 |
--- src/ex_docmd.c 2011-05-05 13:48:57.000000000 +0200
|
|
Karsten Hopp |
5a9487 |
***************
|
|
Karsten Hopp |
5a9487 |
*** 2424,2448 ****
|
|
Karsten Hopp |
5a9487 |
if ( (ea.argt & REGSTR)
|
|
Karsten Hopp |
5a9487 |
&& *ea.arg != NUL
|
|
Karsten Hopp |
5a9487 |
#ifdef FEAT_USR_CMDS
|
|
Karsten Hopp |
5a9487 |
- && valid_yank_reg(*ea.arg, (ea.cmdidx != CMD_put
|
|
Karsten Hopp |
5a9487 |
- && USER_CMDIDX(ea.cmdidx)))
|
|
Karsten Hopp |
5a9487 |
/* Do not allow register = for user commands */
|
|
Karsten Hopp |
5a9487 |
&& (!USER_CMDIDX(ea.cmdidx) || *ea.arg != '=')
|
|
Karsten Hopp |
5a9487 |
- #else
|
|
Karsten Hopp |
5a9487 |
- && valid_yank_reg(*ea.arg, ea.cmdidx != CMD_put)
|
|
Karsten Hopp |
5a9487 |
#endif
|
|
Karsten Hopp |
5a9487 |
&& !((ea.argt & COUNT) && VIM_ISDIGIT(*ea.arg)))
|
|
Karsten Hopp |
5a9487 |
{
|
|
Karsten Hopp |
5a9487 |
! ea.regname = *ea.arg++;
|
|
Karsten Hopp |
5a9487 |
! #ifdef FEAT_EVAL
|
|
Karsten Hopp |
5a9487 |
! /* for '=' register: accept the rest of the line as an expression */
|
|
Karsten Hopp |
5a9487 |
! if (ea.arg[-1] == '=' && ea.arg[0] != NUL)
|
|
Karsten Hopp |
5a9487 |
{
|
|
Karsten Hopp |
5a9487 |
! set_expr_line(vim_strsave(ea.arg));
|
|
Karsten Hopp |
5a9487 |
! ea.arg += STRLEN(ea.arg);
|
|
Karsten Hopp |
5a9487 |
}
|
|
Karsten Hopp |
5a9487 |
#endif
|
|
Karsten Hopp |
5a9487 |
! ea.arg = skipwhite(ea.arg);
|
|
Karsten Hopp |
5a9487 |
}
|
|
Karsten Hopp |
5a9487 |
|
|
Karsten Hopp |
5a9487 |
/*
|
|
Karsten Hopp |
5a9487 |
--- 2424,2462 ----
|
|
Karsten Hopp |
5a9487 |
if ( (ea.argt & REGSTR)
|
|
Karsten Hopp |
5a9487 |
&& *ea.arg != NUL
|
|
Karsten Hopp |
5a9487 |
#ifdef FEAT_USR_CMDS
|
|
Karsten Hopp |
5a9487 |
/* Do not allow register = for user commands */
|
|
Karsten Hopp |
5a9487 |
&& (!USER_CMDIDX(ea.cmdidx) || *ea.arg != '=')
|
|
Karsten Hopp |
5a9487 |
#endif
|
|
Karsten Hopp |
5a9487 |
&& !((ea.argt & COUNT) && VIM_ISDIGIT(*ea.arg)))
|
|
Karsten Hopp |
5a9487 |
{
|
|
Karsten Hopp |
5a9487 |
! #ifndef FEAT_CLIPBOARD
|
|
Karsten Hopp |
5a9487 |
! /* check these explicitly for a more specific error message */
|
|
Karsten Hopp |
5a9487 |
! if (*ea.arg == '*' || *ea.arg == '+')
|
|
Karsten Hopp |
5a9487 |
{
|
|
Karsten Hopp |
5a9487 |
! errormsg = (char_u *)_(e_invalidreg);
|
|
Karsten Hopp |
5a9487 |
! goto doend;
|
|
Karsten Hopp |
5a9487 |
}
|
|
Karsten Hopp |
5a9487 |
#endif
|
|
Karsten Hopp |
5a9487 |
! if (
|
|
Karsten Hopp |
5a9487 |
! #ifdef FEAT_USR_CMDS
|
|
Karsten Hopp |
5a9487 |
! valid_yank_reg(*ea.arg, (ea.cmdidx != CMD_put
|
|
Karsten Hopp |
5a9487 |
! && USER_CMDIDX(ea.cmdidx)))
|
|
Karsten Hopp |
5a9487 |
! #else
|
|
Karsten Hopp |
5a9487 |
! valid_yank_reg(*ea.arg, ea.cmdidx != CMD_put)
|
|
Karsten Hopp |
5a9487 |
! #endif
|
|
Karsten Hopp |
5a9487 |
! )
|
|
Karsten Hopp |
5a9487 |
! {
|
|
Karsten Hopp |
5a9487 |
! ea.regname = *ea.arg++;
|
|
Karsten Hopp |
5a9487 |
! #ifdef FEAT_EVAL
|
|
Karsten Hopp |
5a9487 |
! /* for '=' register: accept the rest of the line as an expression */
|
|
Karsten Hopp |
5a9487 |
! if (ea.arg[-1] == '=' && ea.arg[0] != NUL)
|
|
Karsten Hopp |
5a9487 |
! {
|
|
Karsten Hopp |
5a9487 |
! set_expr_line(vim_strsave(ea.arg));
|
|
Karsten Hopp |
5a9487 |
! ea.arg += STRLEN(ea.arg);
|
|
Karsten Hopp |
5a9487 |
! }
|
|
Karsten Hopp |
5a9487 |
! #endif
|
|
Karsten Hopp |
5a9487 |
! ea.arg = skipwhite(ea.arg);
|
|
Karsten Hopp |
5a9487 |
! }
|
|
Karsten Hopp |
5a9487 |
}
|
|
Karsten Hopp |
5a9487 |
|
|
Karsten Hopp |
5a9487 |
/*
|
|
Karsten Hopp |
5a9487 |
*** ../vim-7.3.170/src/globals.h 2011-02-15 17:39:14.000000000 +0100
|
|
Karsten Hopp |
5a9487 |
--- src/globals.h 2011-05-05 13:47:44.000000000 +0200
|
|
Karsten Hopp |
5a9487 |
***************
|
|
Karsten Hopp |
5a9487 |
*** 1561,1566 ****
|
|
Karsten Hopp |
5a9487 |
--- 1561,1569 ----
|
|
Karsten Hopp |
5a9487 |
(defined(FEAT_INS_EXPAND) && defined(FEAT_COMPL_FUNC))
|
|
Karsten Hopp |
5a9487 |
EXTERN char_u e_notset[] INIT(= N_("E764: Option '%s' is not set"));
|
|
Karsten Hopp |
5a9487 |
#endif
|
|
Karsten Hopp |
5a9487 |
+ #ifndef FEAT_CLIPBOARD
|
|
Karsten Hopp |
5a9487 |
+ EXTERN char_u e_invalidreg[] INIT(= N_("E850: Invalid register name"));
|
|
Karsten Hopp |
5a9487 |
+ #endif
|
|
Karsten Hopp |
5a9487 |
|
|
Karsten Hopp |
5a9487 |
#ifdef MACOS_X_UNIX
|
|
Karsten Hopp |
5a9487 |
EXTERN short disallow_gui INIT(= FALSE);
|
|
Karsten Hopp |
5a9487 |
*** ../vim-7.3.170/src/version.c 2011-04-28 19:05:01.000000000 +0200
|
|
Karsten Hopp |
5a9487 |
--- src/version.c 2011-05-05 14:24:39.000000000 +0200
|
|
Karsten Hopp |
5a9487 |
***************
|
|
Karsten Hopp |
5a9487 |
*** 716,717 ****
|
|
Karsten Hopp |
5a9487 |
--- 716,719 ----
|
|
Karsten Hopp |
5a9487 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
5a9487 |
+ /**/
|
|
Karsten Hopp |
5a9487 |
+ 171,
|
|
Karsten Hopp |
5a9487 |
/**/
|
|
Karsten Hopp |
5a9487 |
|
|
Karsten Hopp |
5a9487 |
--
|
|
Karsten Hopp |
5a9487 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
5a9487 |
53. To find out what time it is, you send yourself an e-mail and check the
|
|
Karsten Hopp |
5a9487 |
"Date:" field.
|
|
Karsten Hopp |
5a9487 |
|
|
Karsten Hopp |
5a9487 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
5a9487 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
5a9487 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
5a9487 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|