Hi Bram,

The diff for this patch is wrong.

Regards,
Yegappan

On Tue, May 24, 2022 at 3:49 AM Bram Moolenaar <[email protected]> wrote:

>
> Patch 8.2.5011
> Problem:    Replacing an autocommand requires several lines.
> Solution:   Add the "replace" flag to autocmd_add(). (Yegappan Lakshmanan,
>             closes #10473)
> Files:      runtime/doc/autocmd.txt, runtime/doc/builtin.txt,
> src/autocmd.c,
>             src/testdir/test_autocmd.vim
>
>
> diff --git a/src/testdir/test_textobjects.vim
> b/src/testdir/test_textobjects.vim
> index 34894d068a2a..9c41d10e5059 100644
> --- a/src/testdir/test_textobjects.vim
> +++ b/src/testdir/test_textobjects.vim
> @@ -41,6 +41,24 @@ func Test_inner_block_with_cpo_M_right_backslash()
>    call CpoM('(red (blue\) green)', 1, ['red (blue\) green', 'blue\', 'red
> (blue\) green'])
>  endfunc
>
> +func Test_inner_block_single_char()
> +  new
> +  call setline(1, "(a)")
> +
> +  set selection=inclusive
> +  let @"=''
> +  call assert_nobeep('norm! 0faviby')
> +  call assert_equal('a', @")
> +
> +  set selection=exclusive
> +  let @"=''
> +  call assert_nobeep('norm! 0faviby')
> +  call assert_equal('a', @")
> +
> +  set selection&
> +  bwipe!
> +endfunc
> +
>  func Test_quote_selection_selection_exclusive()
>    new
>    call setline(1, "a 'bcde' f")
> diff --git a/src/textobject.c b/src/textobject.c
> index edaa64c51cc3..9a8a91626042 100644
> --- a/src/textobject.c
> +++ b/src/textobject.c
> @@ -1133,8 +1133,10 @@ current_block(
>         /*
>          * In Visual mode, when the resulting area is not bigger than what
> we
>          * started with, extend it to the next block, and then exclude
> again.
> +        * Don't try to expand the area if the area is empty.
>          */
>         if (!LT_POS(start_pos, old_start) && !LT_POS(old_end,
> curwin->w_cursor)
> +               && !EQUAL_POS(start_pos, curwin->w_cursor)
>                 && VIsual_active)
>         {
>             curwin->w_cursor = old_start;
>
>

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7%3DrYgKHo2d0bdHSvr%2BTw8WQsTbE302mZGg7ru6oSiqZSA%40mail.gmail.com.

Raspunde prin e-mail lui