On 18/02/14 13:23, Cade Foster wrote:
This patch prevent delete part of multi-byte character.

Steps to reproduce bug:

1) start vim (console or GUI):

vim -u NONE -U NONE --noplugin -i NONE -n

Note:
LANG is "en_US.UTF-8"
TERM is "linux"
vim version 7.4 with patches 1-183

2) type any multi-byte character, for example, alpha:

i<C-k>a*

type newline and leave insert mode:

<cr><Esc>

3) type:

:set whichwrap=h<cr>

Results:
line 1: α
line 2: <Cursor_here>
line 3: ~
line 4: ~
...

4) type

dh

Actual results:
line 1: <ce>
line 2: ~
line 3: ~
...

Expected results:
line 1: α
line 2: ~
line 3: ~
...


I confirm this bug on the following version and patchlevel; but ":set ww+=h" is an essential part of the testcase. (Normally my 'whichwrap' includes every possible flag _except_ h,l).

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Feb 16 2014 01:35:02)
Included patches: 1-183
Compiled by [email protected]
Huge version with GTK2-GNOME GUI. […]


Best regards,
Tony.
--
"Mom and dad say I should make my life an example of the principles
 I believe in. But every time I do, they tell me to stop it."
                 [Calvin & Hobbes]

--
--
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/groups/opt_out.

Raspunde prin e-mail lui