summaryrefslogtreecommitdiff
path: root/src/charset.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-03-21 21:45:34 +0100
committerBram Moolenaar <Bram@vim.org>2019-03-21 21:45:34 +0100
commit2c519cf3bfe76083767ac94c674d2e161ed36587 (patch)
tree6386fbe43e4c710c1a31fe28ea3989cfe35e96a8 /src/charset.c
parentf7e47af7760fe054cb645dac9a1e96b23c85804d (diff)
downloadvim-git-2c519cf3bfe76083767ac94c674d2e161ed36587.tar.gz
patch 8.1.1032: warnings from clang static analyzerv8.1.1032
Problem: Warnings from clang static analyzer. (Yegappan Lakshmanan) Solution: Fix relevant warnings.
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/charset.c b/src/charset.c
index 1d66d617a..3eb5b5805 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1055,7 +1055,6 @@ win_lbr_chartabsize(
if (col2 >= colmax) /* doesn't fit */
{
size = colmax - col + col_adj;
- tab_corr = FALSE;
break;
}
}
@@ -1108,7 +1107,8 @@ win_lbr_chartabsize(
{
/* calculate effective window width */
int width = (colnr_T)wp->w_width - sbrlen - numberwidth;
- int prev_width = col ? ((colnr_T)wp->w_width - (sbrlen + col)) : 0;
+ int prev_width = col
+ ? ((colnr_T)wp->w_width - (sbrlen + col)) : 0;
if (width == 0)
width = (colnr_T)wp->w_width;
added += ((size - prev_width) / width) * vim_strsize(p_sbr);
@@ -1963,7 +1963,7 @@ hexhex2nr(char_u *p)
/*
* Return TRUE if "str" starts with a backslash that should be removed.
- * For MS-DOS, WIN32 and OS/2 this is only done when the character after the
+ * For MS-DOS, MSWIN and OS/2 this is only done when the character after the
* backslash is not a normal file name character.
* '$' is a valid file name character, we don't remove the backslash before
* it. This means it is not possible to use an environment variable after a