.. zsh-module-meta::
   :name: zsh/deltochar
   :summary: A ZLE function duplicating EMACS' ``zap-to-char``.

The ``zsh/deltochar`` module makes available two ZLE functions:

.. index:: single: delete-to-char; Type

``delete-to-char``
    
    Read a character from the keyboard, and
    delete from the cursor position up to and including the next
    (or, with repeat count :var:`n`, the :var:`n`\th) instance of that character.
    Negative repeat counts mean delete backwards.
    

.. index:: single: zap-to-char; Type

``zap-to-char``
    
    This behaves like ``delete-to-char``, except that the final occurrence of
    the character itself is not deleted.
    

