Lech Lorens wrote:
> The right shift of a block is not performed well in certain situations
> if 'enc' is set to a multi-byte value.
>
> Observe it by editing a file with the following contents in Vim (1 and
> 2 are line numbers, not the contents of the file):
>
> #v+
> 1 s|
> 2 |
> #v-
>
> $ vim -u NONE -U NONE --noplugin file.txt
>
> :set enc=utf-8 number list listchars=tab:>-
> :1
> :normal 2|
> :normal j>gv>
>
> The result is (note that the '|' characters are not in the same column):
>
> #v+
> 1 s |
> 2 |
> #v-
>
> If you change the steps to:
>
> :set enc=utf-8 number list listchars=tab:>-
> :1
> :normal 2|
> :normal j>gv>gv>
>
> The result will be (the '|' character in the second line stops moving):
>
> #v+
> 1 s |
> 2 |
> #v-
>
> The attached patch fixes the problem.
Thanks. Keep them coming!
--
Kisses may last for as much as, but no more than, five minutes.
[real standing law in Iowa, United States of America]
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---