aboutsummaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-25 13:04:10 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-28 07:59:25 -0300
commit4d0dd14189c0f0dd4ad561d65d97aa3e1589102b (patch)
treef39168b6aa8be9c583e13e1477940383b10932b6 /src/screen.c
parente1943248855756174c445870716cc98ebf16b30e (diff)
downloadrneovim-4d0dd14189c0f0dd4ad561d65d97aa3e1589102b.tar.gz
rneovim-4d0dd14189c0f0dd4ad561d65d97aa3e1589102b.tar.bz2
rneovim-4d0dd14189c0f0dd4ad561d65d97aa3e1589102b.zip
Use portable format specifiers: Improve arguments formatting.
At some places, printf-like function's arguments styling could be improved to enhance readability.
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/screen.c b/src/screen.c
index be26b6993d..9910f93324 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -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,