• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/busybox/editors/

Lines Matching refs:dot

91 	S_BEFORE_WS = 1,	// used in skip_thing() for moving "dot"
92 S_TO_WS = 2, // used in skip_thing() for moving "dot"
93 S_OVER_WS = 3, // used in skip_thing() for moving "dot"
94 S_END_PUNCT = 4, // used in skip_thing() for moving "dot"
95 S_END_ALNUM = 5, // used in skip_thing() for moving "dot"
106 char *dot; // where all the action takes place
214 #define dot (G.dot )
284 static void sync_cursor(char *, int *, int *); // synchronize the screen cursor to dot
293 static void dot_left(void); // move dot left- dont leave line
294 static void dot_right(void); // move dot right- dont leave line
295 static void dot_begin(void); // move dot to B-o-l
296 static void dot_end(void); // move dot to E-o-l
297 static void dot_next(void); // move dot to next line B-o-l
298 static void dot_prev(void); // move dot to prev line B-o-l
300 static void dot_skip_over_ws(void); // move dot pat WS
301 static void dot_delete(void); // delete the char at 'dot'
484 screenbegin = dot = end = text = xzalloc(text_size);
573 screenbegin = dot = text;
620 dot = text;
628 if (begin_line(dot) != cur_line) {
629 cur_line = begin_line(dot);
630 text_yank(begin_line(dot), end_line(dot), Ureg);
679 q = begin_line(dot);
704 q = char_search(dot, pat, FORWARD, FULL);
788 // :.r bar // read file "bar" into buffer before dot
851 dot = find_line(b); // what line is #b
870 b = e = count_lines(text, dot);
875 q = begin_line(dot); // assume .,. for the range
876 r = end_line(dot);
878 dot = yank_delete(q, r, 1, YANKDEL); // save, then delete lines
943 q = begin_line(dot); // assume .,. for the range
944 r = end_line(dot);
1007 q = begin_line(dot); // assume "dot"
1027 // if the insert is before "dot" then we need to update
1028 if (q <= dot)
1029 dot += ch;
1110 q = begin_line(dot); // start with cur line
1193 q = begin_line(dot); // assume .,. for the range
1194 r = end_line(dot);
1206 dot = bound_dot(dot); // make sure "dot" is valid
1249 // we moved too many lines. put "dot" in middle of screen
1298 // "co" is the column where "dot" is.
1317 // if the first char of the line is a tab, and "dot" is sitting on it
1425 if (dot > text && dot[-1] != '\n')
1426 dot--;
1431 if (dot < end - 1 && *dot != '\n')
1432 dot++;
1437 dot = begin_line(dot); // return pointer to first char cur line
1442 dot = end_line(dot); // return pointer to last char cur line
1467 dot = next_line(dot);
1472 dot = prev_line(dot);
1490 // make sure "dot" stays on the screen so we dont scroll off
1491 if (dot < screenbegin)
1492 dot = screenbegin;
1494 if (dot > q)
1495 dot = begin_line(q); // is dot is below bottom line?
1502 while (isspace(*dot) && *dot != '\n' && dot < end - 1)
1503 dot++;
1506 static void dot_delete(void) // delete the char at 'dot'
1508 text_hole_delete(dot, dot);
1670 if ((p[-1] != '\n') && (dot > text)) {
1675 if ((p[-1] != '\n') && (dot>text)) {
1727 save_dot = dot;
1728 p = q = dot;
1740 q = dot;
1746 if (dot > text && ((isspace(dot[-1]) && !isspace(dot[0]))
1747 || (ispunct(dot[-1]) && !ispunct(dot[0]))
1748 || (isalnum(dot[-1]) && !isalnum(dot[0]))))
1749 dot--; // move back off of next word
1750 if (dot > text && *dot == '\n')
1751 dot--; // stay off NL
1752 q = dot;
1755 q = end_line(dot); // find NL
1758 p = dot;
1761 p = begin_line(dot);
1764 q = dot;
1791 dot = save_dot;
1889 save_dot = dot; // remember where we are
1890 dot = q; // go to new loc
1893 dot = save_dot; // go back to old loc
1915 dot += bias;
2113 if (dot < context_start || dot > context_end) {
2117 mark[26] = dot; // move local to cur
2118 context_start = prev_line(prev_line(dot));
2119 context_end = next_line(next_line(dot));
2676 cur = count_lines(text, dot);
2681 tot = cur + count_lines(dot, end - 1) - 1;
2805 sync_cursor(dot, &crow, &ccol); // where cursor will be (on "dot")
2940 // we are 'R'eplacing the current *dot with new char
2941 if (*dot == '\n') {
2947 dot = yank_delete(dot, dot, 0, YANKDEL); // delete char
2948 dot = char_insert(dot, c); // insert new char
2956 // insert the char c at "dot"
2958 dot = char_insert(dot, c);
3046 dot = move_to_col(dot, ccol + offset); // try stay in same col
3101 dot = q;
3106 dot = swap_context(dot); // swap current and previous context
3115 // between text[0] and dot then this mark will not point to the
3121 mark[c1] = dot;
3140 if (end_line(dot) == (end - 1)) {
3141 dot = end; // force dot to end of text[]
3150 string_insert(dot, p); // insert the string
3155 p = begin_line(dot);
3156 q = end_line(dot);
3159 dot = p;
3170 dot = end_line(dot);
3173 for (q = dot; q < end && *q != '\n'; q++) {
3180 dot = p;
3200 q = dot + 1;
3205 dot = q;
3213 q = dot - 1;
3218 dot = q;
3266 p = dot - 1;
3269 p = dot + 1;
3281 p = dot + 1;
3284 p = dot - 1;
3289 dot = q; // good search, update "dot"
3293 // no pattern found between "dot" and "end"- continue at top
3300 dot = q; // found new pattern- goto it
3313 q = char_search(dot, "\n\n", BACK, FULL);
3315 dot = next_line(q); // move to next blank line
3319 q = char_search(dot, "\n\n", FORWARD, FULL);
3321 dot = next_line(q); // move to next blank line
3381 dot = find_line(j); // go to line # j
3390 cnt = count_lines(text, dot); // remember what line we are on
3414 dot = find_line(cnt); // what line were we on
3422 if (*dot != '\n')
3423 dot++;
3435 if (c == 'W' || isspace(dot[dir])) {
3436 dot = skip_thing(dot, 1, dir, S_TO_WS);
3437 dot = skip_thing(dot, 2, dir, S_OVER_WS);
3440 dot = skip_thing(dot, 1, dir, S_BEFORE_WS);
3444 save_dot = dot;
3445 dot = dollar_line(dot); // move to before NL
3447 dot = yank_delete(save_dot, dot, 0, YANKDEL); // delete to e-o-l
3468 dot = end - 1; // assume E-O-F
3470 dot = find_line(cmdcnt); // what line is #cmdcnt
3475 dot = screenbegin;
3498 if (dot < end - 1) { // make sure not last char in text[]
3499 *dot++ = ' '; // replace NL with space
3501 while (isblank(*dot)) { // delete leading WS
3508 dot = end_screen();
3519 dot = screenbegin;
3521 dot = next_line(dot);
3525 p = begin_line(dot);
3530 dot = char_insert(dot, '\n');
3533 dot = char_insert(dot, '\n'); // i\n ESC
3545 case 'X': // X- delete char before dot
3554 if (dot[dir] != '\n') {
3556 dot--; // delete prev char
3557 dot = yank_delete(dot, dot, 0, YANKDEL); // delete char
3598 if ((dot + dir) < text || (dot + dir) > end - 1)
3600 dot += dir;
3601 if (isspace(*dot)) {
3602 dot = skip_thing(dot, (c == 'e') ? 2 : 1, dir, S_OVER_WS);
3604 if (isalnum(*dot) || *dot == '_') {
3605 dot = skip_thing(dot, 1, dir, S_END_ALNUM);
3606 } else if (ispunct(*dot)) {
3607 dot = skip_thing(dot, 1, dir, S_END_PUNCT);
3639 dot = yank_delete(p, q, ml, yf); // delete word
3642 dot = yank_delete(p, q, ml, yf); // delete word
3645 dot = yank_delete(p, q, ml, yf); // delete lines
3655 dot = char_insert(dot, '\n');
3657 if (whole && dot != (end-1)) {
3697 dot = move_to_col(dot, ccol + offset); // try stay in same col
3701 if (*dot != '\n') {
3702 *dot = c1;
3710 if (*dot == last_forward_char)
3718 if (isalnum(*dot) || *dot == '_') { // we are on ALNUM
3719 dot = skip_thing(dot, 1, FORWARD, S_END_ALNUM);
3720 } else if (ispunct(*dot)) { // we are on PUNCT
3721 dot = skip_thing(dot, 1, FORWARD, S_END_PUNCT);
3723 if (dot < end - 1)
3724 dot++; // move over word
3725 if (isspace(*dot)) {
3726 dot = skip_thing(dot, 2, FORWARD, S_OVER_WS);
3733 cnt = (rows - 2) / 2; // put dot at center
3735 cnt = rows - 2; // put dot at bottom
3736 screenbegin = begin_line(dot); // start dot at top
3740 dot = move_to_col(dot, cmdcnt - 1); // try to move to column
3746 if (islower(*dot)) {
3747 *dot = toupper(*dot);
3749 } else if (isupper(*dot)) {
3750 *dot = tolower(*dot);
3782 dot = text;
3784 // it is OK for dot to exactly equal to end, otherwise check dot validity
3785 if (dot != end) {
3786 dot = bound_dot(dot); // make sure "dot" is valid
3794 cnt = dot - begin_line(dot);
3796 if (*dot == '\n' && cnt > 0 && cmd_mode == 0)
3797 dot--;
3870 // "dot" movement commands
3974 if (dot < text) {
3975 strcat(msg, "dot<text ");
3977 if (dot > end) {
3978 strcat(msg, "dot>end ");