diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-07-18 21:47:53 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-07-18 21:47:53 +0000 |
commit | bbebc857507f24c82cd5bb2f80305b74390b4611 (patch) | |
tree | 4c1a949017d7975cb3e61b246783369bb529d53d /src/regexp.c | |
parent | fe3ca8ddd9b85240387b6fa7934af3317e25b731 (diff) | |
download | vim-git-bbebc857507f24c82cd5bb2f80305b74390b4611.tar.gz |
updated for version 7.0109
Diffstat (limited to 'src/regexp.c')
-rw-r--r-- | src/regexp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/regexp.c b/src/regexp.c index ae1bfd12f..7ff271b43 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -3047,7 +3047,7 @@ static int ireg_icombine; * Copy of "rmm_maxcol": maximum column to search for a match. Zero when * there is no maximum. */ -static int ireg_maxcol; +static colnr_T ireg_maxcol; /* * Sometimes need to save a copy of a line. Since alloc()/free() is very @@ -6866,10 +6866,7 @@ reg_submatch(no) len = submatch_mmatch->endpos[no].col - submatch_mmatch->startpos[no].col; if (round == 2) - { - STRNCPY(retval, s, len); - retval[len] = NUL; - } + vim_strncpy(retval, s, len); ++len; } else |