~strahinja/poe

bf8e0975269a7fe88a714c98fad688bc4f0a8d4a — Страхиња Радић 3 months ago 12506e6 + 955a242 v1.4.3
Merge branch 'master' of git.sr.ht:~strahinja/poe
2 files changed, 2 insertions(+), 9 deletions(-)

M TODO
M draw.c
M TODO => TODO +0 -7
@@ 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?

M draw.c => draw.c +2 -2
@@ 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);
	}