Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 389 by chris.morganiser: 'linebreak' breaks c% if the last visual selection was block
https://code.google.com/p/vim/issues/detail?id=389

Précis: when the 'linebreak' option is set and visual block mode was the
last visual mode entered, c% removes the text for deletion in a blockwise
manner rather than the character-wise manner that should be the case.

Detailed steps to reproduce (no special configuration is required;
vim -u NONE exhibits the buggy behaviour):

Enter this demonstrative text:

abcd{ef
ghijklm
no}pqrs

Go to the opening {.

Enter and exit visual block mode (<C-V><C-V>).

At some point no later than this, :set linebreak.

c%<Esc>

The expected contents of the buffer is this:

abcdpqrs

The actual contents of the buffer is this:

abef
ghlm
nors

I haven’t experimented much more, but d% is not buggy.

I am using Vim 7.4.778 on Arch Linux, 64-bit (huge with GTK2 GUI).

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

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