static inline void edit_draw_this_char (WEdit * edit, off_t curs, long row, long start_column, long end_column) { off_t b = edit_buffer_get_bol (&edit->buffer, curs); edit_draw_this_line (edit, b, row, start_column, end_column); }
static off_t line_start (const edit_buffer_t * buf, long line) { off_t p; long l; l = buf->curs_line; p = buf->curs1; if (line < l) p = edit_buffer_move_backward (buf, p, l - line); else if (line > l) p = edit_buffer_move_forward (buf, p, line - l, 0); p = edit_buffer_get_bol (buf, p); while (strchr ("\t ", edit_buffer_get_byte (buf, p)) != NULL) p++; return p; }