comparison src/normal.c @ 944:b2dcb8457067 v7.0.070

updated for version 7.0-070
author vimboss
date Tue, 29 Aug 2006 15:30:07 +0000
parents 77f8a648d2e6
children 2787b8483e64
comparison
equal deleted inserted replaced
943:e70aad5761b5 944:b2dcb8457067
4125 pos_T found_pos; 4125 pos_T found_pos;
4126 int t; 4126 int t;
4127 int save_p_ws; 4127 int save_p_ws;
4128 int save_p_scs; 4128 int save_p_scs;
4129 int retval = OK; 4129 int retval = OK;
4130 int incl; 4130 int incll;
4131 4131
4132 if ((pat = alloc(len + 7)) == NULL) 4132 if ((pat = alloc(len + 7)) == NULL)
4133 return FAIL; 4133 return FAIL;
4134 4134
4135 /* Put "\V" before the pattern to avoid that the special meaning of "." 4135 /* Put "\V" before the pattern to avoid that the special meaning of "."
4145 /* 4145 /*
4146 * With "gD" go to line 1. 4146 * With "gD" go to line 1.
4147 * With "gd" Search back for the start of the current function, then go 4147 * With "gd" Search back for the start of the current function, then go
4148 * back until a blank line. If this fails go to line 1. 4148 * back until a blank line. If this fails go to line 1.
4149 */ 4149 */
4150 if (!locally || !findpar(&incl, BACKWARD, 1L, '{', FALSE)) 4150 if (!locally || !findpar(&incll, BACKWARD, 1L, '{', FALSE))
4151 { 4151 {
4152 setpcmark(); /* Set in findpar() otherwise */ 4152 setpcmark(); /* Set in findpar() otherwise */
4153 curwin->w_cursor.lnum = 1; 4153 curwin->w_cursor.lnum = 1;
4154 par_pos = curwin->w_cursor; 4154 par_pos = curwin->w_cursor;
4155 } 4155 }