aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-04 22:17:25 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-02-04 22:17:25 +0800
commit9b0363d365f92b1a31bcf0fc32969a4667c11e95 (patch)
treec1ed6a90c2ed63a155693b8ce8c71d3319e75d4e /src/nvim/fileio.c
parentcb863d4e1f2c14eca46dda053a0d3062a0802196 (diff)
downloadrneovim-9b0363d365f92b1a31bcf0fc32969a4667c11e95.tar.gz
rneovim-9b0363d365f92b1a31bcf0fc32969a4667c11e95.tar.bz2
rneovim-9b0363d365f92b1a31bcf0fc32969a4667c11e95.zip
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". https://github.com/vim/vim/commit/3f40ce78f5c178d15871bd784ed878c78f0b8a44
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index f6d37adf89..f28ee1bfcb 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -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);
}
}