Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: vi-backward-kill-word



Vi "r" seems to still have some problems.

Suppose you have a command line like:

  echo aéo

and move the cursor to é and type "rb". Then the command line
will become

  echo áb

In vireplacechars(), line 545 (zle_vi.c),
            foredel(n - newchars, CUT_RAW);

this will remove the base character "e" at zlecs, shift the
combining character, and move zlecs to the next base char "o".

    a e comb o
      |
      zlecs

will become

    a comb o
           |
           zlecs

and then "o" is replaced by "b".


Messages sorted by: Reverse Date, Date, Thread, Author