On 2011-05-03, Sung Pae wrote:

> Gary, would you mind running your tests again with this patch? Yanking
> multi-line selections from Firefox should be just fine, since it no
> longer just looks at the last character to determine the motion type.

Sung Pae,

Thanks for the new patch.  I reverted your previous patch and
applied this one.

Test 1a

    *   Start vim as "vim -N -u NONE".  (I replaced the previous
        version of vim in my PATH with this patched version.)
    *   Read some text into vim with ":r !ls -l".
    *   Triple-click on the Vim 7.3 release notice from vim.sf.net
        ("[2010-08-15] Finally, ... Moolenaar)")
    *   Paste into the middle of a line in the middle of the vim
        screen with

            "*p

    *   The text is pasted character-wise, that is, is inserted in
        the middle of the line with no newlines.

    This is the same behavior as before, but may be because Firefox
    may not put a newline in the copied text.

Test 1b

    *   Set up vim as before.
    *   On the vim.sf.net page, select the text from "Vim charity
        update" through the end of the Vim 7.3 release notice by
        left-clicking and dragging the mouse over it.
    *   Paste into the middle of a line in the middle of the vim
        screen with

            "*p

    *   This time the text is pasted line-wise below the cursor.

    I didn't test this case with the previous patch.  An unpatched
    vim pastes this character-wise.

Test 2

    *   Set up vim as before.
    *   Move the cursor to the middle of some line below the top of
        the screen and copy three lines with

            Vjj"+y

    *   Exit vim, then restart and set up as before.
    *   Move the cursor to the middle of a line in the middle of the
        screen and paste with

            "+p

    *   The text is pasted line-wise below the cursor.  (It was
        pasted character-wise with the previous patch.)

    This one is weird.  From this experiment, the patch appears to
    work correctly.  The first time I tried it, though, it pasted
    character-wise.  I've been repeating this one a number of times
    and sometimes it pastes line-wise and sometimes it pastes
    character-wise.  I've been copying lines randomly and pasting
    them in random positions, but I _think_ I've done all the other
    steps the same way.  I haven't found a pattern yet.

I replied to your message of May 2, but I never received a copy from
the list.  I haven't checked the web interface to see if it wasn't
received by the list or whether I just didn't receive my copy.

Regards,
Gary

-- 
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