Tony Mechelynck wrote:

> 'delcombine' doesn't work on the command-line
> 
> Reproducible: Always
> 
> Steps to reproduce:
> 1. Start Vim with +multi_byte and with encoding=utf-8
> 2. Make sure 'delcombine' is on
> 3. Start a search command-line for something which includes at least one 
> combining character. I used \<Ð²Ñ‹Ì ÑˆÐµ\> (backslash, less-than, 
> Cyrillic-veh, Cyrillic-ery, combining-acute, Cyrillic-shah, 
> Cyrillic-yeh, backslash, greater-than) as the search pattern; the 
> combining-acute is U+0301.
> 4. Move the command-line cursor to just after the combining character.
> 5. Hit Backspace
> 
> Actual result:
> The combining character gets deleted together with the spacing character 
> preceding it.
> 
> Expected result:
> Since 'delcombine' is set, I would have expected to remove only the 
> combining character, just as it happens when I hit Backspace at the same 
> position in the same word in Insert mode.
> 
> Additional info:
> The help for 'delcombine' says:
> >     If editing Unicode and this option is set, backspace and Normal mode
> >     "x" delete each combining character on its own.
> 
> I would have expected this to apply also to backspacing on the 
> command-line (especially a / or ? search command-line, but also e.g. in 
> a ":let variable = 'value'" ex-comand line).
> 
> I'm using gvim 7.2.234 (Huge) with GTK2/Gnome2 GUI.

I see the problem.  And yes, I suppose this is a bug.

-- 
>From "know your smileys":
 [:-)   Frankenstein's monster

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

Raspunde prin e-mail lui