On 3/8/19 3:52 AM, Bram Moolenaar wrote:
Patch 8.1.0999
Problem:    Use register one too often and not properly tested.
Solution:   Do not always use register one when specifying a register.
             (closes #4085)  Add more tests.
Files:      src/ops.c, src/testdir/test_registers.vim
/*
         * Put deleted text into register 1 and shift number registers if the
!        * delete contains a line break, or when using a specific operator (Vi
!        * compatible)
         * Use the register name from before adjust_clip_reg() may have
         * changed it.
         */
!       if (oap->motion_type == MLINE || oap->line_count > 1
!                                                          || oap->use_reg_one)
        {
            shift_delete_registers();

+   " delete a word with a register does not change register one
+   call setline(1, "three")
+   normal "ade
+   call assert_equal("three", @a)
+   call assert_equal("one\n", @1)

I tried http://ex-vi.sourceforge.net/ and "ade does change "1. When we say something is vi compatible, which version of vi is being referred to?


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

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui