~vcs-imports/nano/master

Viewing all changes in revision 9344.

  • Committer: Benno Schulenberg
  • Date: 2020-11-17 09:21:50 UTC
  • Revision ID: git-v1:687efd210ced98d13b477f6c4544d39828b32632
moving: skip combining characters and other zero-width characters

This makes the cursor move smoothly left and right -- instead of
"stuttering" when passing over a zero-width character.

Pressing <Delete> on a normal (spacing) character also deletes
any zero-width characters after it.  But pressing <Backspace>
while the cursor is placed after a zero-width character, just
deletes that zero-width character.  The latter behavior allows
deleting and retyping just the combining diacritic of a character
instead of the whole character.

This addresses https://savannah.gnu.org/bugs/?50773.
Requested-by: Mike Frysinger <vapier@gentoo.org>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: