mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
Use portable format specifiers: Improve arguments formatting.
At some places, printf-like function's arguments styling could be improved to enhance readability.
This commit is contained in:

committed by
Thiago de Arruda

parent
e194324885
commit
4d0dd14189
@@ -7897,9 +7897,8 @@ static void win_redr_ruler(win_T *wp, int always)
|
||||
* To avoid portability problems we use strlen() here.
|
||||
*/
|
||||
vim_snprintf((char *)buffer, RULER_BUF_LEN, "%" PRId64 ",",
|
||||
(wp->w_buffer->b_ml.ml_flags & ML_EMPTY)
|
||||
? (int64_t)0L
|
||||
: (int64_t)wp->w_cursor.lnum);
|
||||
(wp->w_buffer->b_ml.ml_flags & ML_EMPTY) ? (int64_t)0L
|
||||
: (int64_t)wp->w_cursor.lnum);
|
||||
len = STRLEN(buffer);
|
||||
col_print(buffer + len, RULER_BUF_LEN - len,
|
||||
empty_line ? 0 : (int)wp->w_cursor.col + 1,
|
||||
|
Reference in New Issue
Block a user