diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-02-16 22:05:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-16 14:05:13 +0000 |
commit | 84520325547d6ab3a047a09b5a0e55e8b216a9fb (patch) | |
tree | f301872e208ea39883a05c24f4f56117de09de1f /src/nvim/mbyte.c | |
parent | efe92f9dff9383cf78a2d0c857448a14514c7043 (diff) | |
download | rneovim-84520325547d6ab3a047a09b5a0e55e8b216a9fb.tar.gz rneovim-84520325547d6ab3a047a09b5a0e55e8b216a9fb.tar.bz2 rneovim-84520325547d6ab3a047a09b5a0e55e8b216a9fb.zip |
fix(marks): handle double-with inline virt_text with 'nowrap' (#32476)
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r-- | src/nvim/mbyte.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index ffd4472b8a..add650e7a9 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -2251,24 +2251,6 @@ int mb_charlen(const char *str) return count; } -int mb_charlen2bytelen(const char *str, int charlen) -{ - const char *p = str; - int count = 0; - - if (p == NULL) { - return 0; - } - - for (int i = 0; *p != NUL && i < charlen; i++) { - int b = utfc_ptr2len(p); - p += b; - count += b; - } - - return count; -} - /// Like mb_charlen() but for a string with specified length. int mb_charlen_len(const char *str, int len) { |