aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds2.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-04-27 01:41:43 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-04-27 01:41:43 -0400
commit0928904e16a8cc68492732c773931fcedf7efdac (patch)
tree147d5e2dec0c82477647dc499b164b38e43a5ada /src/nvim/ex_cmds2.c
parent4230f8c332ce56ed2369f1500f7eaceb0bd968f3 (diff)
parentd9a51ca8119ba05056d593b8ca5b7161d12fc1c1 (diff)
downloadrneovim-0928904e16a8cc68492732c773931fcedf7efdac.tar.gz
rneovim-0928904e16a8cc68492732c773931fcedf7efdac.tar.bz2
rneovim-0928904e16a8cc68492732c773931fcedf7efdac.zip
Merge #2349 'vim-patch:7.4.519'
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r--src/nvim/ex_cmds2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index a2577513d4..98e6d87196 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -687,7 +687,6 @@ debuggy_find (
{
struct debuggy *bp;
linenr_T lnum = 0;
- regmatch_T regmatch;
char_u *name = fname;
int prev_got_int;
@@ -709,8 +708,6 @@ debuggy_find (
if (((bp->dbg_type == DBG_FILE) == file && (
gap == &prof_ga ||
(bp->dbg_lnum > after && (lnum == 0 || bp->dbg_lnum < lnum))))) {
- regmatch.regprog = bp->dbg_prog;
- regmatch.rm_ic = FALSE;
/*
* Save the value of got_int and reset it. We don't want a
* previous interruption cancel matching, only hitting CTRL-C
@@ -718,7 +715,7 @@ debuggy_find (
*/
prev_got_int = got_int;
got_int = FALSE;
- if (vim_regexec(&regmatch, name, (colnr_T)0)) {
+ if (vim_regexec_prog(&bp->dbg_prog, false, name, (colnr_T)0)) {
lnum = bp->dbg_lnum;
if (fp != NULL)
*fp = bp->dbg_forceit;