Lines Matching refs:last

110 /* The last string searched for by a !?string? search. */
113 /* The last string matched by a !?string? search. */
411 no previous pattern for the lhs, the last history search
632 /* :p means make this the last executed line. So we
639 /* :t discards all but the last part of the pathname. */
651 /* :h discards the last part of a pathname. */
678 for each occurrence of `this'. :& repeats the last
679 substitution. :g& repeats the last substitution
712 uses the last search string as the lhs. */
1174 to point to just after the last character parsed. */
1181 int first, last;
1186 first = last = 0;
1199 /* `%' is the word last searched for. */
1214 /* `$' is last arg. */
1237 last = (spec[i] == '^') ? 1 : '$'; /* x* abbreviates x-$ */
1241 last = first;
1248 for (last = 0; _rl_digit_p (spec[i]); i++)
1249 last = (last * 10) + _rl_digit_value (spec[i]);
1254 last = '$';
1264 last = -1; /* x- abbreviates x-$ omitting word `$' */
1269 if (last >= first || last == '$' || last < 0)
1270 result = history_arg_extract (first, last, from);
1278 tokens, so that FIRST = -1 means the next to last token on the line).
1279 If LAST is `$' the last arg from STRING is used. */
1281 history_arg_extract (first, last, string)
1282 int first, last;
1299 if (last < 0)
1300 last = len + last - 1;
1305 if (last == '$')
1306 last = len - 1;
1311 last++;
1313 if (first >= len || last > len || first < 0 || last < 0 || first > last)
1317 for (size = 0, i = first; i < last; i++)
1322 for (i = first, offset = 0; i < last; i++)
1326 if (i + 1 < last)
1472 last history !?string? search. */