### Triage
+- [ ] favourites... I want some favourite documents that are easy to
+ find, favourite directories, favourite make or shell commands.
+ Maybe that are found by moving "down" in history? Maybe alt-*
+ flags them?
+- [ ] merge command 9-A-m could work as one command. If there is an
+ active selection, the patch is moved to that selection.
+- [ ] merge command 9 must ensure selection is full lines.
- [ ] if cursor position causes pane size to change, this doesn't
propagate.
- [X] check formatting in x11 display. Wrap causes problems 474/476 of
- [X] Change times_up() to use pane_too_long()
- [X] change :A-x menu to use doc-list - add sorting
-- [ ] Change render-lines to handle centring and right-align in flush_line
+- [X] Change render-lines to handle centring and right-align in flush_line
- [ ] Teach render-lines to pad spaces to left/right align text
- [ ] revise *Welcome* page
bool wrap = shift_left < 0;
int wrap_margin;
int right_margin = p->w - (rd->right_margin * rd->scale / 1000);
+ int left_margin = rd->left_margin * rd->scale / 1000;
int xdiff, ydiff;
struct call_return cr;
int x, y;
/* Set 'x' position honouring tab stops, and set length
* of "\t" characters. Also handle \n and \f.
*/
- x = (rd->left_margin * rd->scale / 1000) - (shift_left > 0 ? shift_left : 0);
+ x = left_margin - (shift_left > 0 ? shift_left : 0);
y = rd->space_above * rd->scale / 1000;
rd->width = 0;
for (ri = rd->content; ri; ri = ri->next) {
struct render_item *ri2;
ri->y = y;
if (ri->tab != TAB_UNSET)
- x = (rd->left_margin * rd->scale / 1000) + calc_tab(ri->tab, right_margin, rd->scale);
+ x = left_margin + calc_tab(ri->tab, right_margin,
+ rd->scale);
if (ri->eol) {
/* EOL */
if (x > rd->width)
ri2 = ri2->next;
margin = right_margin;
if (ri2)
- margin = (rd->left_margin * rd->scale / 1000) + calc_tab(ri2->tab, right_margin, rd->scale);
+ margin = left_margin + calc_tab(ri2->tab, right_margin,
+ rd->scale);
if (ri->tab_align == TAB_RIGHT)
x = x + margin - x - w;
else
*/
xdiff = 0; ydiff = 0; y = 0;
wraprl = NULL;
- wrap_margin = rd->head_length;
+ wrap_margin = left_margin + rd->head_length;
for (ri = rd->content ; wrap && ri ; ri = ri->next) {
int splitpos;
if (ri->wrap && (wraprl == NULL || ri->wrap != wraprl->wrap))