mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
vim-patch:8.2.1128: the write message mentions characters, but it's bytes
Problem: The write message mentions characters, but it's actually bytes.
Solution: Change "C" to "B" and "characters" to "bytes".
3f40ce78f5
This commit is contained in:
@@ -3863,7 +3863,7 @@ void msg_add_lines(int insert_space, long lnum, off_T nchars)
|
||||
*p++ = ' ';
|
||||
}
|
||||
if (shortmess(SHM_LINES)) {
|
||||
vim_snprintf((char *)p, IOSIZE - (p - IObuff), "%" PRId64 "L, %" PRId64 "C",
|
||||
vim_snprintf((char *)p, IOSIZE - (p - IObuff), "%" PRId64 "L, %" PRId64 "B",
|
||||
(int64_t)lnum, (int64_t)nchars);
|
||||
} else {
|
||||
vim_snprintf((char *)p, IOSIZE - (p - IObuff),
|
||||
@@ -3871,7 +3871,7 @@ void msg_add_lines(int insert_space, long lnum, off_T nchars)
|
||||
(int64_t)lnum);
|
||||
p += STRLEN(p);
|
||||
vim_snprintf((char *)p, IOSIZE - (p - IObuff),
|
||||
NGETTEXT("%" PRId64 " character", "%" PRId64 " characters", nchars),
|
||||
NGETTEXT("%" PRId64 " byte", "%" PRId64 " bytes", nchars),
|
||||
(int64_t)nchars);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user