diff src/fileio.c @ 21154:9f9c26b3ddc5 v8.2.1128

patch 8.2.1128: the write message mentions characters, but it's bytes Commit: https://github.com/vim/vim/commit/3f40ce78f5c178d15871bd784ed878c78f0b8a44 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 5 14:10:13 2020 +0200 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".
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Jul 2020 14:15:07 +0200
parents 334a8a5a6267
children bb3f60b0aca0
line wrap: on
line diff
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -3039,13 +3039,13 @@ msg_add_lines(
 	*p++ = ' ';
     if (shortmess(SHM_LINES))
 	vim_snprintf((char *)p, IOSIZE - (p - IObuff),
-		"%ldL, %lldC", lnum, (varnumber_T)nchars);
+		"%ldL, %lldB", lnum, (varnumber_T)nchars);
     else
     {
 	sprintf((char *)p, NGETTEXT("%ld line, ", "%ld lines, ", lnum), lnum);
 	p += STRLEN(p);
 	vim_snprintf((char *)p, IOSIZE - (p - IObuff),
-		NGETTEXT("%lld character", "%lld characters", nchars),
+		NGETTEXT("%lld byte", "%lld bytes", nchars),
 		(varnumber_T)nchars);
     }
 }