diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-11-15 11:44:37 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-11-15 11:44:37 -0500 |
commit | bc812a82f87644e184b17517936fddf6ff1221e3 (patch) | |
tree | ca6faf2bbc85d9098b6663d2d236ca761175cb2f /src/nvim/charset.c | |
parent | b299c011a04e6c14ec7dc9fd50a58f4a9e5afd40 (diff) | |
parent | 150b0d66e11dc69b1a4fc3daad3016fa74bee4d9 (diff) | |
download | rneovim-bc812a82f87644e184b17517936fddf6ff1221e3.tar.gz rneovim-bc812a82f87644e184b17517936fddf6ff1221e3.tar.bz2 rneovim-bc812a82f87644e184b17517936fddf6ff1221e3.zip |
Merge pull request #1460 from elmart/clang-analysis-fixes-3
Fix clang analysis warnings. (3)
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r-- | src/nvim/charset.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index e7ecf05880..f3bb3d8c73 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -978,7 +978,6 @@ int win_lbr_chartabsize(win_T *wp, char_u *line, char_u *s, colnr_T col, int *he int mb_added = 0; int numberextra; char_u *ps; - int tab_corr = (*s == TAB); int n; // No 'linebreak', 'showbreak' and 'breakindent': return quickly. @@ -992,7 +991,7 @@ int win_lbr_chartabsize(win_T *wp, char_u *line, char_u *s, colnr_T col, int *he // First get normal size, without 'linebreak' int size = win_chartabsize(wp, s, col); int c = *s; - if (tab_corr) { + if (*s == TAB) { col_adj = size - 1; } @@ -1034,7 +1033,6 @@ int win_lbr_chartabsize(win_T *wp, char_u *line, char_u *s, colnr_T col, int *he if (col2 >= colmax) { /* doesn't fit */ size = colmax - col + col_adj; - tab_corr = FALSE; break; } } |