diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2017-02-28 00:46:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-28 00:46:09 +0100 |
| commit | 28a6d4393db0de56ade7e75d0029f6bbd8f2e9db (patch) | |
| tree | 6d0428d0d44ad7b5650abf0407d4af16a9a87ace /src/nvim/hardcopy.c | |
| parent | c8ee0be7451ed5bf02a87270fa47fbb1372aa85d (diff) | |
| parent | 1a81ec6d8841e96ce01f25fd030f76851b00d895 (diff) | |
| download | rneovim-28a6d4393db0de56ade7e75d0029f6bbd8f2e9db.tar.gz rneovim-28a6d4393db0de56ade7e75d0029f6bbd8f2e9db.tar.bz2 rneovim-28a6d4393db0de56ade7e75d0029f6bbd8f2e9db.zip | |
Merge #6148 from delftswa2017/clang-scan-fix-dead-stores
vim-patch:8.0.0353
Diffstat (limited to 'src/nvim/hardcopy.c')
| -rw-r--r-- | src/nvim/hardcopy.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/nvim/hardcopy.c b/src/nvim/hardcopy.c index c2dc6231f1..19d97ecfef 100644 --- a/src/nvim/hardcopy.c +++ b/src/nvim/hardcopy.c @@ -845,12 +845,10 @@ static colnr_T hardcopy_line(prt_settings_T *psettings, int page_line, prt_pos_T * Loop over the columns until the end of the file line or right margin. */ for (col = ppos->column; line[col] != NUL && !need_break; col += outputlen) { - outputlen = 1; - if (has_mbyte && (outputlen = (*mb_ptr2len)(line + col)) < 1) + if ((outputlen = (*mb_ptr2len)(line + col)) < 1) { outputlen = 1; - /* - * syntax highlighting stuff. - */ + } + // syntax highlighting stuff. if (psettings->do_syntax) { id = syn_get_id(curwin, ppos->file_line, col, 1, NULL, FALSE); if (id > 0) |
