20411 |
int past_end = 0; |
int past_end = 0; |
20412 |
|
|
20413 |
first = MATRIX_FIRST_TEXT_ROW (w->current_matrix); |
first = MATRIX_FIRST_TEXT_ROW (w->current_matrix); |
20414 |
|
if (charpos < MATRIX_ROW_START_CHARPOS (first)) |
20415 |
|
{ |
20416 |
|
*x = first->x; |
20417 |
|
*y = first->y; |
20418 |
|
*hpos = 0; |
20419 |
|
*vpos = MATRIX_ROW_VPOS (first, w->current_matrix); |
20420 |
|
return 1; |
20421 |
|
} |
20422 |
|
|
20423 |
row = row_containing_pos (w, charpos, first, NULL, 0); |
row = row_containing_pos (w, charpos, first, NULL, 0); |
20424 |
if (row == NULL) |
if (row == NULL) |
20425 |
{ |
{ |
20426 |
if (charpos < MATRIX_ROW_START_CHARPOS (first)) |
row = MATRIX_ROW (w->current_matrix, XFASTINT (w->window_end_vpos)); |
20427 |
{ |
past_end = 1; |
|
*x = *y = *hpos = *vpos = 0; |
|
|
return 1; |
|
|
} |
|
|
else |
|
|
{ |
|
|
row = MATRIX_ROW (w->current_matrix, XFASTINT (w->window_end_vpos)); |
|
|
past_end = 1; |
|
|
} |
|
20428 |
} |
} |
20429 |
|
|
20430 |
*x = row->x; |
*x = row->x; |