On 05/05/11 14:26, Bram Moolenaar wrote:

Patch 7.3.171
Problem:    When the clipboard isn't supported: ":yank*" gives a confusing
            error message.
Solution:   Specifically mention that the register name is invalid.
            (Jean-Rene David)
Files:      runtime/doc/change.txt, src/ex_docmd.c, src/globals.h


*** ../vim-7.3.170/runtime/doc/change.txt       2010-08-15 21:57:18.000000000 
+0200
--- runtime/doc/change.txt      2011-05-05 13:48:00.000000000 +0200
***************
*** 916,923 ****
   {Visual}["x]Y           Yank the highlighted lines [into register x] (for
                        {Visual} see |Visual-mode|).  {not in Vi}

!                                                       *:y* *:yank*
! :[range]y[ank] [x]    Yank [range] lines [into register x].

   :[range]y[ank] [x] {count}
                        Yank {count} lines, starting with last line number
--- 917,926 ----
   {Visual}["x]Y           Yank the highlighted lines [into register x] (for
                        {Visual} see |Visual-mode|).  {not in Vi}

!                                                       *:y* *:yank* *E850*
! :[range]y[ank] [x]    Yank [range] lines [into register x]. Yanking to the
!                       "* or "+ registers is possible only in GUI versions or
!                       when the |+xterm_clipboard| feature is included.

Shouldn't they also be valid in the Windows Console version (which is neither a GUI nor +xterm_clipboard, since the latter is "Unix-only") but ought to be able to communicate with the Windows clipboard? Maybe replace |+xterm_clipboard| by |+clipboard| (and omit mention of the GUI, which always has +clipboard)?


   :[range]y[ank] [x] {count}
                        Yank {count} lines, starting with last line number
*** ../vim-7.3.170/src/ex_docmd.c       2011-04-11 21:35:03.000000000 +0200
[...]


Best regards,
Tony.
--
Sex without love is an empty experience, but, as empty experiences go,
it's one of the best.
                -- Woody Allen

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui