Mercurial > vim
comparison src/eval.c @ 700:c78d973dce9e v7.0211
updated for version 7.0211
author | vimboss |
---|---|
date | Wed, 01 Mar 2006 22:12:31 +0000 |
parents | f08390485cd3 |
children | 69e8006af734 |
comparison
equal
deleted
inserted
replaced
699:2af8de31a3a8 | 700:c78d973dce9e |
---|---|
13410 sprintf((char *)pat3, "\\(%s\\m\\)\\|\\(%s\\m\\)\\|\\(%s\\m\\)", | 13410 sprintf((char *)pat3, "\\(%s\\m\\)\\|\\(%s\\m\\)\\|\\(%s\\m\\)", |
13411 spat, epat, mpat); | 13411 spat, epat, mpat); |
13412 | 13412 |
13413 save_cursor = curwin->w_cursor; | 13413 save_cursor = curwin->w_cursor; |
13414 pos = curwin->w_cursor; | 13414 pos = curwin->w_cursor; |
13415 firstpos.lnum = 0; | 13415 clearpos(&firstpos); |
13416 foundpos.lnum = 0; | 13416 clearpos(&foundpos); |
13417 pat = pat3; | 13417 pat = pat3; |
13418 for (;;) | 13418 for (;;) |
13419 { | 13419 { |
13420 n = searchit(curwin, curbuf, &pos, dir, pat, 1L, | 13420 n = searchit(curwin, curbuf, &pos, dir, pat, 1L, |
13421 SEARCH_KEEP, RE_SEARCH, lnum_stop); | 13421 SEARCH_KEEP, RE_SEARCH, lnum_stop); |
15580 static pos_T * | 15580 static pos_T * |
15581 var2fpos(varp, lnum) | 15581 var2fpos(varp, lnum) |
15582 typval_T *varp; | 15582 typval_T *varp; |
15583 int lnum; /* TRUE when $ is last line */ | 15583 int lnum; /* TRUE when $ is last line */ |
15584 { | 15584 { |
15585 char_u *name; | 15585 char_u *name; |
15586 static pos_T pos; | 15586 static pos_T pos; |
15587 pos_T *pp; | 15587 pos_T *pp; |
15588 | 15588 |
15589 /* Argument can be [lnum, col]. */ | 15589 /* Argument can be [lnum, col]. */ |
15590 if (varp->v_type == VAR_LIST) | 15590 if (varp->v_type == VAR_LIST) |
15591 { | 15591 { |
15592 list_T *l; | 15592 list_T *l; |