чување bf8e0975269a7fe88a714c98fad688bc4f0a8d4a
родитељ 12506e6c05dffb560b2e1434bea68c2e6238957c
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Sun, 23 Jan 2022 17:46:12 +0100
Merge branch 'master' of git.sr.ht:~strahinja/poe
Diffstat:
измењених датотека: 2, додавања: 2(+), брисања: 9(-)
diff --git a/TODO b/TODO
@@ -1,13 +1,6 @@
TODO
====
- [x] Wrap long msgids/msgstrs when saving
- [x] Transition to u32_next_line
- [x] Fix: When saving a msgstr, \n gets added (check
- nlines)
- [x] Convert po.c:save_file to u32_next_line (currently
- deletes all strings!)
-
< > Wrap long lines? Not if it would complicate the code too much.
< > Sort by flag/column?
diff --git a/draw.c b/draw.c
@@ -628,7 +628,7 @@ draw_editbox(const struct DrawState* state)
u32_draw_string(startx + 1, starty + 1 + i,
curline->fg == 0 ? fg : curline->fg,
curline->bg == 0 ? bg : curline->bg,
- curline->text, w - 1, w - 1, 1, 1, LEFT,
+ curline->text, w - 2, w - 2, 1, 1, LEFT,
state->info_first_shown_column, 1, NULL, 0, 0);
}
@@ -656,7 +656,7 @@ draw_editbox(const struct DrawState* state)
dlen = display_length(state, curline->text, curline->length);
if (dlen > state->input_first_shown_column)
u32_draw_string(startx + 1, endy - h / 2 - 1 + i, fg,
- bg, curline->text, w - 1, w - 1, 1, 1, LEFT,
+ bg, curline->text, w - 2, w - 2, 1, 1, LEFT,
state->input_first_shown_column, 1, NULL, 0, 0);
}