aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mbyte.c
diff options
context:
space:
mode:
authorZviRackover <zvirack@gmail.com>2018-08-29 23:32:57 +0300
committerZviRackover <zvirack@gmail.com>2018-08-31 22:47:50 +0300
commita3549286b24000dcdd4411bd5faf637e1c9a0d3d (patch)
treebad8a0b911d27dd31bc02d019c17562b69c37807 /src/nvim/mbyte.c
parent1015aa6ff36b6f936f4707119d57cf561df28feb (diff)
downloadrneovim-a3549286b24000dcdd4411bd5faf637e1c9a0d3d.tar.gz
rneovim-a3549286b24000dcdd4411bd5faf637e1c9a0d3d.tar.bz2
rneovim-a3549286b24000dcdd4411bd5faf637e1c9a0d3d.zip
lint: clean-up after parent commits
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r--src/nvim/mbyte.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c
index 0bc97e1686..0ee8e2bd85 100644
--- a/src/nvim/mbyte.c
+++ b/src/nvim/mbyte.c
@@ -2124,8 +2124,9 @@ static char_u *iconv_string(const vimconv_T *const vcp, char_u *str,
* conversion from 'encoding' to something else. In other
* situations we don't know what to skip anyway. */
*to++ = '?';
- if (utf_ptr2cells((char_u *)from) > 1)
+ if (utf_ptr2cells((char_u *)from) > 1) {
*to++ = '?';
+ }
l = utfc_ptr2len_len((const char_u *)from, (int)fromlen);
from += l;
fromlen -= l;