diff options
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index 53e5511a5a..79e6bc8be7 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -446,9 +446,7 @@ void trunc_string(const char *s, char *buf, int room_in, int buflen) // Last part: End of the string. half = i = (int)strlen(s); while (true) { - do { - half = half - utf_head_off(s, s + half - 1) - 1; - } while (half > 0 && utf_iscomposing(utf_ptr2char(s + half))); + half = half - utf_head_off(s, s + half - 1) - 1; n = ptr2cells(s + half); if (len + n > room || half == 0) { break; |