summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-01-19 14:59:56 +0100
committerBram Moolenaar <Bram@vim.org>2010-01-19 14:59:56 +0100
commit2660c0ea9be48b57b5b7f613fdd6add99c643c80 (patch)
tree4516eeafe1e08e8386f4b1260d3f15ea5bdea75c /src/edit.c
parent3ea38ef23944f3d49c126b94708e2d4a540bca42 (diff)
downloadvim-git-2660c0ea9be48b57b5b7f613fdd6add99c643c80.tar.gz
updated for version 7.2.333v7.2.333
Problem: Warnings from static code analysis. Solution: Small changes to various lines. (Dominique Pelle)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/edit.c b/src/edit.c
index 75b18084f..43058f8b7 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -4048,7 +4048,7 @@ ins_compl_get_exp(ini)
save_p_ic = p_ic;
p_ic = ignorecase(compl_pattern);
- /* Find up to TAG_MANY matches. Avoids that an enourmous number
+ /* Find up to TAG_MANY matches. Avoids that an enormous number
* of matches is found when compl_pattern is empty */
if (find_tags(compl_pattern, &num_matches, &matches,
TAG_REGEXP | TAG_NAMES | TAG_NOIC |
@@ -4219,7 +4219,7 @@ ins_compl_get_exp(ini)
|| IObuff[len - 2] == '!'))))
IObuff[len++] = ' ';
}
- /* copy as much as posible of the new word */
+ /* copy as much as possible of the new word */
if (tmp_ptr - ptr >= IOSIZE - len)
tmp_ptr = ptr + IOSIZE - len - 1;
STRNCPY(IObuff + len, ptr, tmp_ptr - ptr);
@@ -5827,10 +5827,7 @@ internal_format(textwidth, second_indent, flags, format_only, c)
#endif
&& !has_format_option(FO_WRAP))
- {
- textwidth = 0;
break;
- }
if ((startcol = curwin->w_cursor.col) == 0)
break;