version 1.2, 2021/02/22 06:53:04 |
version 1.3, 2021/03/09 08:24:09 |
|
|
|
|
/* Do not break up wrapped words. */ |
/* Do not break up wrapped words. */ |
if (grid_get_line(gr->gd, gr->cy)->flags & GRID_LINE_WRAPPED) |
if (grid_get_line(gr->gd, gr->cy)->flags & GRID_LINE_WRAPPED) |
xx = grid_reader_line_length(gr) - 1; |
xx = gr->gd->sx - 1; |
else |
else |
xx = grid_reader_line_length(gr); |
xx = grid_reader_line_length(gr); |
yy = gr->gd->hsize + gr->gd->sy - 1; |
yy = gr->gd->hsize + gr->gd->sy - 1; |
|
|
|
|
if (grid_get_line(gr->gd, gr->cy)->flags & |
if (grid_get_line(gr->gd, gr->cy)->flags & |
GRID_LINE_WRAPPED) |
GRID_LINE_WRAPPED) |
xx = grid_reader_line_length(gr) - 1; |
xx = gr->gd->sx - 1; |
else |
else |
xx = grid_reader_line_length(gr); |
xx = grid_reader_line_length(gr); |
} else |
} else |
|
|
|
|
/* Do not break up wrapped words. */ |
/* Do not break up wrapped words. */ |
if (grid_get_line(gr->gd, gr->cy)->flags & GRID_LINE_WRAPPED) |
if (grid_get_line(gr->gd, gr->cy)->flags & GRID_LINE_WRAPPED) |
xx = grid_reader_line_length(gr) - 1; |
xx = gr->gd->sx - 1; |
else |
else |
xx = grid_reader_line_length(gr); |
xx = grid_reader_line_length(gr); |
yy = gr->gd->hsize + gr->gd->sy - 1; |
yy = gr->gd->hsize + gr->gd->sy - 1; |
|
|
|
|
if (grid_get_line(gr->gd, gr->cy)->flags & |
if (grid_get_line(gr->gd, gr->cy)->flags & |
GRID_LINE_WRAPPED) |
GRID_LINE_WRAPPED) |
xx = grid_reader_line_length(gr) - 1; |
xx = gr->gd->sx - 1; |
else |
else |
xx = grid_reader_line_length(gr); |
xx = grid_reader_line_length(gr); |
} else |
} else |
|
|
GRID_LINE_WRAPPED) |
GRID_LINE_WRAPPED) |
break; |
break; |
grid_reader_cursor_up(gr); |
grid_reader_cursor_up(gr); |
grid_reader_cursor_end_of_line(gr, 0, 0); |
grid_reader_cursor_end_of_line(gr, 0, 1); |
} |
} |
if (gr->cx > 0) |
if (gr->cx > 0) |
gr->cx--; |
gr->cx--; |