curs1 499 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 519 src/editor/edit.c edit->buffer.curs1, edit->serialized_bookmarks); curs1 657 src/editor/edit.c for (p = edit_buffer_get_current_bol (buf); p < buf->curs1; p++) curs1 845 src/editor/edit.c edit_cursor_move (edit, -edit->buffer.curs1); curs1 878 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); curs1 879 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 893 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); curs1 894 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 955 src/editor/edit.c && edit->buffer.curs1 == edit_buffer_get_current_bol (&edit->buffer)) curs1 958 src/editor/edit.c if (edit->buffer.curs1 == 0) curs1 996 src/editor/edit.c && edit->buffer.curs1 == edit_buffer_get_current_eol (&edit->buffer)) curs1 999 src/editor/edit.c if (edit->buffer.curs1 >= edit->buffer.size) curs1 1036 src/editor/edit.c c = edit_buffer_get_utf (&edit->buffer, edit->buffer.curs1, &char_length); curs1 1060 src/editor/edit.c && edit->over_col == 0 && edit->buffer.curs1 == edit_buffer_get_current_bol (&edit->buffer)) curs1 1065 src/editor/edit.c edit_buffer_get_prev_utf (&edit->buffer, edit->buffer.curs1, &char_length); curs1 1107 src/editor/edit.c edit_cursor_move (edit, p - edit->buffer.curs1); curs1 1112 src/editor/edit.c if (edit->buffer.curs1 > 0 && edit->buffer.curs1 + 1 < edit->buffer.size curs1 1120 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 1129 src/editor/edit.c while (edit->buffer.curs1 < edit->buffer.size) curs1 1151 src/editor/edit.c while (edit->buffer.curs1 > 0) curs1 1376 src/editor/edit.c while (edit_buffer_get_previous_byte (&edit->buffer) != '\n' && edit->buffer.curs1 != 0) curs1 1401 src/editor/edit.c ch |= edit_buffer_get_byte (&edit->buffer, edit->buffer.curs1 - i); curs1 1414 src/editor/edit.c ch |= edit_buffer_get_byte (&edit->buffer, edit->buffer.curs1 + i); curs1 1426 src/editor/edit.c p = edit->buffer.curs1; curs1 1448 src/editor/edit.c || edit_buffer_get_byte (&edit->buffer, edit->buffer.curs1 - 2) == '\n') curs1 1509 src/editor/edit.c curs = edit->buffer.curs1; curs1 1523 src/editor/edit.c off_t current = edit->buffer.curs1; curs1 1524 src/editor/edit.c edit_cursor_move (edit, curs - edit->buffer.curs1 + 1); curs1 1526 src/editor/edit.c edit_cursor_move (edit, current - edit->buffer.curs1 + 1); curs1 1564 src/editor/edit.c for (q = edit->buffer.curs1 + inc;; q += inc) curs1 1605 src/editor/edit.c edit->bracket = edit->buffer.curs1; curs1 1607 src/editor/edit.c edit_cursor_move (edit, q - edit->buffer.curs1); curs1 1629 src/editor/edit.c edit_cursor_move (edit, cur_bol - edit->buffer.curs1); curs1 1638 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); curs1 1670 src/editor/edit.c edit_cursor_move (edit, cur_bol - edit->buffer.curs1); curs1 1728 src/editor/edit.c cursor = edit->buffer.curs1; curs1 1753 src/editor/edit.c for (p = edit->buffer.curs1;; p++) curs1 1757 src/editor/edit.c edit_cursor_move (edit, edit->buffer.size - edit->buffer.curs1); curs1 1769 src/editor/edit.c edit_cursor_move (edit, edit_move_forward3 (edit, p, col, 0) - edit->buffer.curs1); curs1 1779 src/editor/edit.c *end_pos = edit->buffer.curs1; curs1 1780 src/editor/edit.c edit_cursor_move (edit, cursor - edit->buffer.curs1); curs1 1804 src/editor/edit.c curs = edit->buffer.curs1; curs1 1836 src/editor/edit.c edit_cursor_move (edit, curs - edit->buffer.curs1); curs1 1989 src/editor/edit.c current = edit->buffer.curs1; curs1 2003 src/editor/edit.c ins_len = edit->buffer.curs1 - current; curs1 2047 src/editor/edit.c edit_set_markers (edit, edit->buffer.curs1, mark2, c1, c2); curs1 2069 src/editor/edit.c edit_set_markers (edit, edit->buffer.curs1, current, 0, 0); curs1 2078 src/editor/edit.c ins_len = edit->buffer.curs1 - current; curs1 2551 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) curs1 2578 src/editor/edit.c edit->mark1 += (edit->mark1 > edit->buffer.curs1) ? 1 : 0; curs1 2579 src/editor/edit.c edit->mark2 += (edit->mark2 > edit->buffer.curs1) ? 1 : 0; curs1 2580 src/editor/edit.c edit->last_get_rule += (edit->last_get_rule > edit->buffer.curs1) ? 1 : 0; curs1 2591 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) curs1 2610 src/editor/edit.c edit->mark1 += (edit->mark1 >= edit->buffer.curs1) ? 1 : 0; curs1 2611 src/editor/edit.c edit->mark2 += (edit->mark2 >= edit->buffer.curs1) ? 1 : 0; curs1 2612 src/editor/edit.c edit->last_get_rule += (edit->last_get_rule >= edit->buffer.curs1) ? 1 : 0; curs1 2646 src/editor/edit.c edit_buffer_get_utf (&edit->buffer, edit->buffer.curs1, &char_length); curs1 2659 src/editor/edit.c if (edit->mark1 > edit->buffer.curs1) curs1 2664 src/editor/edit.c if (edit->mark2 > edit->buffer.curs1) curs1 2666 src/editor/edit.c if (edit->last_get_rule > edit->buffer.curs1) curs1 2681 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) curs1 2700 src/editor/edit.c if (edit->buffer.curs1 == 0) curs1 2709 src/editor/edit.c edit_buffer_get_prev_utf (&edit->buffer, edit->buffer.curs1, &char_length); curs1 2719 src/editor/edit.c if (edit->mark1 >= edit->buffer.curs1) curs1 2724 src/editor/edit.c if (edit->mark2 >= edit->buffer.curs1) curs1 2726 src/editor/edit.c if (edit->last_get_rule >= edit->buffer.curs1) curs1 2742 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) curs1 2760 src/editor/edit.c for (; increment < 0 && edit->buffer.curs1 != 0; increment++) curs1 2873 src/editor/edit.c return edit->buffer.curs1; curs1 2885 src/editor/edit.c return (long) edit_move_forward3 (edit, b, 0, edit->buffer.curs1); curs1 2906 src/editor/edit.c edit->curs_col = (long) edit_move_forward3 (edit, b, 0, edit->buffer.curs1); curs1 2996 src/editor/edit.c edit_move_forward3 (edit, p, prev + edit->over_col, 0) - edit->buffer.curs1); curs1 3037 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); curs1 3041 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); curs1 3130 src/editor/edit.c end_mark_curs = edit->buffer.curs1; curs1 3191 src/editor/edit.c edit_set_markers (edit, edit->buffer.curs1, -1, edit->curs_col + edit->over_col, curs1 3197 src/editor/edit.c edit->end_mark_curs = edit->buffer.curs1; curs1 3198 src/editor/edit.c edit_set_markers (edit, edit->mark1, edit->buffer.curs1, edit->column1, curs1 3211 src/editor/edit.c for (pos = edit->buffer.curs1; pos != 0; pos--) curs1 3440 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 3450 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 3514 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 3587 src/editor/edit.c while (edit_buffer_get_previous_byte (&edit->buffer) != '\n' && edit->buffer.curs1 > 0) curs1 4097 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 4103 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 121 src/editor/editbuffer.c if (byte_index >= (buf->curs1 + buf->curs2) || byte_index < 0) curs1 124 src/editor/editbuffer.c if (byte_index >= buf->curs1) curs1 128 src/editor/editbuffer.c p = buf->curs1 + buf->curs2 - byte_index - 1; curs1 152 src/editor/editbuffer.c buf->curs1 = 0; curs1 219 src/editor/editbuffer.c if (byte_index >= (buf->curs1 + buf->curs2) || byte_index < 0) curs1 283 src/editor/editbuffer.c if (byte_index > (buf->curs1 + buf->curs2) || byte_index <= 0) curs1 448 src/editor/editbuffer.c if (buf->curs1 <= 0) curs1 462 src/editor/editbuffer.c c = edit_buffer_get_byte (buf, buf->curs1 - i - 1); curs1 475 src/editor/editbuffer.c *word_start = buf->curs1 - i; /* start found */ curs1 496 src/editor/editbuffer.c i = buf->curs1 & M_EDIT_BUF_SIZE; curs1 503 src/editor/editbuffer.c b = g_ptr_array_index (buf->b1, buf->curs1 >> S_EDIT_BUF_SIZE); curs1 507 src/editor/editbuffer.c buf->curs1++; curs1 602 src/editor/editbuffer.c prev = buf->curs1 - 1; curs1 617 src/editor/editbuffer.c buf->curs1 = prev; curs1 833 src/editor/editbuffer.c data_size = ((buf->curs1 - 1) & M_EDIT_BUF_SIZE) + 1; curs1 16 src/editor/editbuffer.h off_t curs1; /* position of the cursor from the beginning of the file. */ curs1 74 src/editor/editbuffer.h return edit_buffer_get_byte (buf, buf->curs1); curs1 82 src/editor/editbuffer.h return edit_buffer_get_byte (buf, buf->curs1 - 1); curs1 97 src/editor/editbuffer.h return edit_buffer_get_bol (buf, buf->curs1); curs1 112 src/editor/editbuffer.h return edit_buffer_get_eol (buf, buf->curs1); curs1 480 src/editor/editcmd.c edit_cursor_move (edit, p - edit->buffer.curs1); curs1 489 src/editor/editcmd.c r = edit_buffer_get_forward_offset (&edit->buffer, edit->buffer.curs1, 1, 0); curs1 490 src/editor/editcmd.c edit_cursor_move (edit, r - edit->buffer.curs1); curs1 526 src/editor/editcmd.c edit_cursor_move (edit, start_mark - edit->buffer.curs1); curs1 678 src/editor/editcmd.c cursor = edit->buffer.curs1; curs1 695 src/editor/editcmd.c for (p = edit->buffer.curs1;; p++) curs1 699 src/editor/editcmd.c edit_cursor_move (edit, edit->buffer.size - edit->buffer.curs1); curs1 710 src/editor/editcmd.c edit_cursor_move (edit, edit_move_forward3 (edit, p, col, 0) - edit->buffer.curs1); curs1 720 src/editor/editcmd.c *end_pos = edit->buffer.curs1; curs1 721 src/editor/editcmd.c edit_cursor_move (edit, cursor - edit->buffer.curs1); curs1 1280 src/editor/editcmd.c off_t start_mark, end_mark, current = edit->buffer.curs1; curs1 1319 src/editor/editcmd.c edit_set_markers (edit, edit->buffer.curs1, mark2, c1, c2); curs1 1339 src/editor/editcmd.c if (!edit->column_highlight && edit->buffer.curs1 > start_mark && edit->buffer.curs1 < end_mark) curs1 1364 src/editor/editcmd.c b1 = edit_buffer_get_eol (&edit->buffer, edit->buffer.curs1); curs1 1369 src/editor/editcmd.c if (edit->buffer.curs1 > start_mark curs1 1370 src/editor/editcmd.c && edit->buffer.curs1 < edit_buffer_get_eol (&edit->buffer, end_mark)) curs1 1387 src/editor/editcmd.c edit_cursor_move (edit, current - edit->buffer.curs1); curs1 1402 src/editor/editcmd.c current = edit->buffer.curs1; curs1 1404 src/editor/editcmd.c edit_cursor_move (edit, start_mark - edit->buffer.curs1); curs1 1411 src/editor/editcmd.c x = current > edit->buffer.curs1 ? end_mark - start_mark : 0; curs1 1412 src/editor/editcmd.c edit_cursor_move (edit, current - edit->buffer.curs1 - x); curs1 1418 src/editor/editcmd.c edit_set_markers (edit, edit->buffer.curs1, edit->buffer.curs1 + end_mark - start_mark, 0, curs1 110 src/editor/editdraw.c if (edit->buffer.curs1 >= edit->buffer.size) curs1 118 src/editor/editdraw.c cur_utf = edit_buffer_get_utf (&edit->buffer, edit->buffer.curs1, &char_length); curs1 148 src/editor/editdraw.c edit->buffer.lines + 1, (long) edit->buffer.curs1, (long) edit->buffer.size, curs1 165 src/editor/editdraw.c edit->buffer.lines + 1, (long) edit->buffer.curs1, (long) edit->buffer.size, curs1 230 src/editor/editdraw.c percent = edit_buffer_calc_percent (&edit->buffer, edit->buffer.curs1); curs1 291 src/editor/editdraw.c edit->buffer.curs_line + 1, edit->buffer.lines + 1, (long) edit->buffer.curs1, curs1 303 src/editor/editdraw.c if (edit->buffer.curs1 >= edit->buffer.size) curs1 311 src/editor/editdraw.c cur_utf = edit_buffer_get_utf (&edit->buffer, edit->buffer.curs1, &char_length); curs1 579 src/editor/editdraw.c p->style = q == edit->buffer.curs1 ? MOD_CURSOR : 0; curs1 978 src/editor/editdraw.c edit_draw_this_char (edit, edit->buffer.curs1, edit->curs_row, start_column, end_column); curs1 982 src/editor/editdraw.c edit_draw_this_char (edit, edit->buffer.curs1, edit->curs_row, start_column, end_column); curs1 989 src/editor/editdraw.c prev_curs = edit->buffer.curs1; curs1 468 src/editor/editsearch.c end_mark = MAX (1, edit->buffer.curs1) - 1; curs1 614 src/editor/editsearch.c edit_cursor_move (edit, edit->search_start - edit->buffer.curs1); curs1 634 src/editor/editsearch.c edit_cursor_move (edit, edit->search_start - edit->buffer.curs1); curs1 643 src/editor/editsearch.c edit->search_start = edit->buffer.curs1; curs1 870 src/editor/editsearch.c edit->search_start = edit->buffer.curs1; curs1 917 src/editor/editsearch.c edit_cursor_move (edit, edit->search_start - edit->buffer.curs1); curs1 998 src/editor/editsearch.c edit->search_start = edit->buffer.curs1; curs1 78 src/editor/format.c p = buf->curs1; curs1 363 src/editor/format.c edit_cursor_move (edit, q - edit->buffer.curs1); curs1 409 src/editor/format.c cursor = edit->buffer.curs1; curs1 426 src/editor/format.c edit_cursor_move (edit, p - edit->buffer.curs1); curs1 427 src/editor/format.c curs = edit->buffer.curs1; curs1 430 src/editor/format.c cursor += edit->buffer.curs1 - p; curs1 431 src/editor/format.c p = edit->buffer.curs1; curs1 435 src/editor/format.c edit_cursor_move (edit, p - edit->buffer.curs1); curs1 439 src/editor/format.c if (cursor > edit->buffer.curs1) curs1 442 src/editor/format.c p = edit->buffer.curs1; curs1 450 src/editor/format.c edit_cursor_move (edit, cursor - edit->buffer.curs1); /* restore cursor position */ curs1 599 src/editor/spell.c match_word = edit_buffer_get_word_from_pos (&edit->buffer, edit->buffer.curs1, &word_start, curs1 683 src/editor/spell.c edit_cursor_move (edit, -edit->buffer.curs1); curs1 696 src/editor/spell.c if (edit->buffer.curs1 >= edit->buffer.size)