summaryrefslogtreecommitdiff
path: root/src/regexp.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-08-29 15:30:07 +0000
committerBram Moolenaar <Bram@vim.org>2006-08-29 15:30:07 +0000
commit89d4032cae3f1e525978bea5015434af677faa44 (patch)
tree1dd68f886ab03aed49d4e5647ee6f5296742c9e0 /src/regexp.c
parent4100af7840a735cced72f1d20121850cea150a0d (diff)
downloadvim-git-89d4032cae3f1e525978bea5015434af677faa44.tar.gz
updated for version 7.0-070v7.0.070
Diffstat (limited to 'src/regexp.c')
-rw-r--r--src/regexp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regexp.c b/src/regexp.c
index 3b5a14828..3160fb8fa 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -3912,7 +3912,7 @@ regmatch(scan)
{
colnr_T start, end;
colnr_T start2, end2;
- colnr_T col;
+ colnr_T cols;
getvvcol(wp, &top, &start, NULL, &end);
getvvcol(wp, &bot, &start2, NULL, &end2);
@@ -3922,9 +3922,9 @@ regmatch(scan)
end = end2;
if (top.col == MAXCOL || bot.col == MAXCOL)
end = MAXCOL;
- col = win_linetabsize(wp,
+ cols = win_linetabsize(wp,
regline, (colnr_T)(reginput - regline));
- if (col < start || col > end - (*p_sel == 'e'))
+ if (cols < start || cols > end - (*p_sel == 'e'))
status = RA_NOMATCH;
}
}
@@ -4253,7 +4253,7 @@ regmatch(scan)
{
int i, len;
char_u *opnd;
- int opndc, inpc;
+ int opndc = 0, inpc;
opnd = OPERAND(scan);
/* Safety check (just in case 'encoding' was changed since