diff options
author | Michael Ennen <mike.ennen@gmail.com> | 2016-05-20 12:16:09 -0700 |
---|---|---|
committer | Michael Ennen <mike.ennen@gmail.com> | 2016-05-20 12:16:09 -0700 |
commit | 6e68cc570c4f6e84e61b5b1f57f9626c0f2b759d (patch) | |
tree | 397a7c0e92b4aaa7d4db5813df054a2234b2a7c2 /src/nvim/ops.c | |
parent | 2ebf365db909b835594d3f9a47e96551f5439b85 (diff) | |
download | rneovim-6e68cc570c4f6e84e61b5b1f57f9626c0f2b759d.tar.gz rneovim-6e68cc570c4f6e84e61b5b1f57f9626c0f2b759d.tar.bz2 rneovim-6e68cc570c4f6e84e61b5b1f57f9626c0f2b759d.zip |
Fixes suggested by @justinmk and @jbradaric
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 407c8d56ab..adfd0424f0 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -5374,7 +5374,7 @@ void cursor_pos_info(dict_T *dict) bom_count = bomb_size(); if (bom_count > 0) { - vim_snprintf((char *)IObuff + STRLEN(IObuff), IOSIZE, + vim_snprintf((char *)IObuff + STRLEN(IObuff), IOSIZE - STRLEN(IObuff), _("(+%" PRId64 " for BOM)"), (int64_t)bom_count); } if (dict == NULL) { @@ -5392,11 +5392,11 @@ void cursor_pos_info(dict_T *dict) dict_add_nr_str(dict, "bytes", byte_count + bom_count, NULL); dict_add_nr_str(dict, l_VIsual_active ? "visual_bytes" : "cursor_bytes", - (long)byte_count_cursor, NULL); + byte_count_cursor, NULL); dict_add_nr_str(dict, l_VIsual_active ? "visual_chars" : "cursor_chars", - (long)char_count_cursor, NULL); + char_count_cursor, NULL); dict_add_nr_str(dict, l_VIsual_active ? "visual_words" : "cursor_words", - (long)word_count_cursor, NULL); + word_count_cursor, NULL); } } |