[vim/vim] mbyte: wrong cell count for an overlong UTF-8 sequence (PR #21005)

2 views
Skip to first unread message

h_east

unread,
5:54 AM (6 hours ago) 5:54 AM
to vim/vim, Subscribed
Problem:  An overlong UTF-8 encoding of an unprintable ASCII character is
          displayed as <xx> but counted as two screen cells, so that the
          cursor ends up in the wrong position when editing the line.
Solution: Count four cells for an unprintable overlong sequence.

fixes: #20988


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/21005

Commit Summary

  • 14ba5e4 mbyte: wrong cell count for an overlong UTF-8 sequence

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21005@github.com>

Reply all
Reply to author
Forward
0 new messages