curs1 509 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 529 src/editor/edit.c edit->buffer.curs1, edit->serialized_bookmarks); curs1 667 src/editor/edit.c for (p = edit_buffer_get_current_bol (buf); p < buf->curs1; p++) curs1 855 src/editor/edit.c edit_cursor_move (edit, -edit->buffer.curs1); curs1 888 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); curs1 889 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 903 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); curs1 904 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 965 src/editor/edit.c && edit->buffer.curs1 == edit_buffer_get_current_bol (&edit->buffer)) curs1 968 src/editor/edit.c if (edit->buffer.curs1 == 0) curs1 1006 src/editor/edit.c && edit->buffer.curs1 == edit_buffer_get_current_eol (&edit->buffer)) curs1 1009 src/editor/edit.c if (edit->buffer.curs1 >= edit->buffer.size) curs1 1046 src/editor/edit.c c = edit_buffer_get_utf (&edit->buffer, edit->buffer.curs1, &char_length); curs1 1070 src/editor/edit.c && edit->over_col == 0 && edit->buffer.curs1 == edit_buffer_get_current_bol (&edit->buffer)) curs1 1075 src/editor/edit.c edit_buffer_get_prev_utf (&edit->buffer, edit->buffer.curs1, &char_length); curs1 1117 src/editor/edit.c edit_cursor_move (edit, p - edit->buffer.curs1); curs1 1122 src/editor/edit.c if (edit->buffer.curs1 > 0 && edit->buffer.curs1 + 1 < edit->buffer.size curs1 1130 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 1139 src/editor/edit.c while (edit->buffer.curs1 < edit->buffer.size) curs1 1161 src/editor/edit.c while (edit->buffer.curs1 > 0) curs1 1386 src/editor/edit.c while (edit_buffer_get_previous_byte (&edit->buffer) != '\n' && edit->buffer.curs1 != 0) curs1 1411 src/editor/edit.c ch |= edit_buffer_get_byte (&edit->buffer, edit->buffer.curs1 - i); curs1 1424 src/editor/edit.c ch |= edit_buffer_get_byte (&edit->buffer, edit->buffer.curs1 + i); curs1 1436 src/editor/edit.c p = edit->buffer.curs1; curs1 1458 src/editor/edit.c || edit_buffer_get_byte (&edit->buffer, edit->buffer.curs1 - 2) == '\n') curs1 1519 src/editor/edit.c curs = edit->buffer.curs1; curs1 1533 src/editor/edit.c off_t current = edit->buffer.curs1; curs1 1534 src/editor/edit.c edit_cursor_move (edit, curs - edit->buffer.curs1 + 1); curs1 1536 src/editor/edit.c edit_cursor_move (edit, current - edit->buffer.curs1 + 1); curs1 1574 src/editor/edit.c for (q = edit->buffer.curs1 + inc;; q += inc) curs1 1615 src/editor/edit.c edit->bracket = edit->buffer.curs1; curs1 1617 src/editor/edit.c edit_cursor_move (edit, q - edit->buffer.curs1); curs1 1639 src/editor/edit.c edit_cursor_move (edit, cur_bol - edit->buffer.curs1); curs1 1648 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); curs1 1680 src/editor/edit.c edit_cursor_move (edit, cur_bol - edit->buffer.curs1); curs1 1738 src/editor/edit.c cursor = edit->buffer.curs1; curs1 1763 src/editor/edit.c for (p = edit->buffer.curs1;; p++) curs1 1767 src/editor/edit.c edit_cursor_move (edit, edit->buffer.size - edit->buffer.curs1); curs1 1779 src/editor/edit.c edit_cursor_move (edit, edit_move_forward3 (edit, p, col, 0) - edit->buffer.curs1); curs1 1789 src/editor/edit.c *end_pos = edit->buffer.curs1; curs1 1790 src/editor/edit.c edit_cursor_move (edit, cursor - edit->buffer.curs1); curs1 1814 src/editor/edit.c curs = edit->buffer.curs1; curs1 1846 src/editor/edit.c edit_cursor_move (edit, curs - edit->buffer.curs1); curs1 1999 src/editor/edit.c current = edit->buffer.curs1; curs1 2013 src/editor/edit.c ins_len = edit->buffer.curs1 - current; curs1 2065 src/editor/edit.c edit_set_markers (edit, edit->buffer.curs1, mark2, c1, c2); curs1 2087 src/editor/edit.c edit_set_markers (edit, edit->buffer.curs1, current, 0, 0); curs1 2096 src/editor/edit.c ins_len = edit->buffer.curs1 - current; curs1 2569 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) curs1 2596 src/editor/edit.c edit->mark1 += (edit->mark1 > edit->buffer.curs1) ? 1 : 0; curs1 2597 src/editor/edit.c edit->mark2 += (edit->mark2 > edit->buffer.curs1) ? 1 : 0; curs1 2598 src/editor/edit.c edit->last_get_rule += (edit->last_get_rule > edit->buffer.curs1) ? 1 : 0; curs1 2609 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) curs1 2628 src/editor/edit.c edit->mark1 += (edit->mark1 >= edit->buffer.curs1) ? 1 : 0; curs1 2629 src/editor/edit.c edit->mark2 += (edit->mark2 >= edit->buffer.curs1) ? 1 : 0; curs1 2630 src/editor/edit.c edit->last_get_rule += (edit->last_get_rule >= edit->buffer.curs1) ? 1 : 0; curs1 2664 src/editor/edit.c edit_buffer_get_utf (&edit->buffer, edit->buffer.curs1, &char_length); curs1 2677 src/editor/edit.c if (edit->mark1 > edit->buffer.curs1) curs1 2682 src/editor/edit.c if (edit->mark2 > edit->buffer.curs1) curs1 2684 src/editor/edit.c if (edit->last_get_rule > edit->buffer.curs1) curs1 2699 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) curs1 2718 src/editor/edit.c if (edit->buffer.curs1 == 0) curs1 2727 src/editor/edit.c edit_buffer_get_prev_utf (&edit->buffer, edit->buffer.curs1, &char_length); curs1 2737 src/editor/edit.c if (edit->mark1 >= edit->buffer.curs1) curs1 2742 src/editor/edit.c if (edit->mark2 >= edit->buffer.curs1) curs1 2744 src/editor/edit.c if (edit->last_get_rule >= edit->buffer.curs1) curs1 2760 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) curs1 2778 src/editor/edit.c for (; increment < 0 && edit->buffer.curs1 != 0; increment++) curs1 2891 src/editor/edit.c return edit->buffer.curs1; curs1 2903 src/editor/edit.c return (long) edit_move_forward3 (edit, b, 0, edit->buffer.curs1); curs1 2924 src/editor/edit.c edit->curs_col = (long) edit_move_forward3 (edit, b, 0, edit->buffer.curs1); curs1 3014 src/editor/edit.c edit_move_forward3 (edit, p, prev + edit->over_col, 0) - edit->buffer.curs1); curs1 3055 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); curs1 3059 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); curs1 3148 src/editor/edit.c end_mark_curs = edit->buffer.curs1; curs1 3209 src/editor/edit.c edit_set_markers (edit, edit->buffer.curs1, -1, edit->curs_col + edit->over_col, curs1 3215 src/editor/edit.c edit->end_mark_curs = edit->buffer.curs1; curs1 3216 src/editor/edit.c edit_set_markers (edit, edit->mark1, edit->buffer.curs1, edit->column1, curs1 3229 src/editor/edit.c for (pos = edit->buffer.curs1; pos != 0; pos--) curs1 3458 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 3468 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 3532 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 3605 src/editor/edit.c while (edit_buffer_get_previous_byte (&edit->buffer) != '\n' && edit->buffer.curs1 > 0) curs1 4115 src/editor/edit.c edit->search_start = edit->buffer.curs1; curs1 4121 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 488 src/editor/editcmd.c edit_cursor_move (edit, p - edit->buffer.curs1); curs1 497 src/editor/editcmd.c r = edit_buffer_get_forward_offset (&edit->buffer, edit->buffer.curs1, 1, 0); curs1 498 src/editor/editcmd.c edit_cursor_move (edit, r - edit->buffer.curs1); curs1 534 src/editor/editcmd.c edit_cursor_move (edit, start_mark - edit->buffer.curs1); curs1 686 src/editor/editcmd.c cursor = edit->buffer.curs1; curs1 703 src/editor/editcmd.c for (p = edit->buffer.curs1;; p++) curs1 707 src/editor/editcmd.c edit_cursor_move (edit, edit->buffer.size - edit->buffer.curs1); curs1 718 src/editor/editcmd.c edit_cursor_move (edit, edit_move_forward3 (edit, p, col, 0) - edit->buffer.curs1); curs1 728 src/editor/editcmd.c *end_pos = edit->buffer.curs1; curs1 729 src/editor/editcmd.c edit_cursor_move (edit, cursor - edit->buffer.curs1); curs1 1289 src/editor/editcmd.c off_t start_mark, end_mark, current = edit->buffer.curs1; curs1 1328 src/editor/editcmd.c edit_set_markers (edit, edit->buffer.curs1, mark2, c1, c2); curs1 1348 src/editor/editcmd.c if (!edit->column_highlight && edit->buffer.curs1 > start_mark && edit->buffer.curs1 < end_mark) curs1 1373 src/editor/editcmd.c b1 = edit_buffer_get_eol (&edit->buffer, edit->buffer.curs1); curs1 1378 src/editor/editcmd.c if (edit->buffer.curs1 > start_mark curs1 1379 src/editor/editcmd.c && edit->buffer.curs1 < edit_buffer_get_eol (&edit->buffer, end_mark)) curs1 1396 src/editor/editcmd.c edit_cursor_move (edit, current - edit->buffer.curs1); curs1 1411 src/editor/editcmd.c current = edit->buffer.curs1; curs1 1413 src/editor/editcmd.c edit_cursor_move (edit, start_mark - edit->buffer.curs1); curs1 1420 src/editor/editcmd.c x = current > edit->buffer.curs1 ? end_mark - start_mark : 0; curs1 1421 src/editor/editcmd.c edit_cursor_move (edit, current - edit->buffer.curs1 - x); curs1 1427 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 458 src/editor/editsearch.c end_mark = MAX (1, edit->buffer.curs1) - 1; curs1 604 src/editor/editsearch.c edit_cursor_move (edit, edit->search_start - edit->buffer.curs1); curs1 621 src/editor/editsearch.c edit_cursor_move (edit, edit->search_start - edit->buffer.curs1); curs1 630 src/editor/editsearch.c edit->search_start = edit->buffer.curs1; curs1 857 src/editor/editsearch.c edit->search_start = edit->buffer.curs1; curs1 901 src/editor/editsearch.c edit_cursor_move (edit, edit->search_start - edit->buffer.curs1); curs1 982 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 597 src/editor/spell.c match_word = edit_buffer_get_word_from_pos (&edit->buffer, edit->buffer.curs1, &word_start, curs1 681 src/editor/spell.c edit_cursor_move (edit, -edit->buffer.curs1); curs1 694 src/editor/spell.c if (edit->buffer.curs1 >= edit->buffer.size)