poe

Уређивач .po фајлова
git clone https://git.sr.ht/~strahinja/poe
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување 221a237cb22123f6adb83b440442082ecf44f69b
родитељ 87ef5b164c3ec8491f81380cb7a8a474a9ed0c5d
Аутор: Страхиња Радић <contact@strahinja.org>
Датум:   Fri, 10 Nov 2023 10:02:35 +0100

Bugfix: C-W when there was text offscreen moved pointer outside of the dialog

Signed-off-by: Страхиња Радић <contact@strahinja.org>

Diffstat:
MTODO | 2--
MTODO.done | 3+++
Mpoe.c | 4+++-
измењених датотека: 3, додавања: 6(+), брисања: 3(-)

diff --git a/TODO b/TODO @@ -1,8 +1,6 @@ TODO ==== -[ ] Bugfix: C-W offscreen (check if there is an equivalent of position_to) - [ ] Replace strn* -> strc*: like str[^n]*, but with configurable string ending character (for msgstr, which has multiple lines delimited with '\n') diff --git a/TODO.done b/TODO.done @@ -1,6 +1,9 @@ Done todos ========== +[x] Bugfix: C-W when there was text offscreen would move pointer outside of the + input dialog + [x] Bugfix: obsolete msgstrs followed by non-obsolete ones - msgid list handling was built entirely around the idea of obsolete entries being at the end of .po file. Since I came across .po files diff --git a/poe.c b/poe.c @@ -926,7 +926,9 @@ erase_prev_word(struct DrawState* state) state->input_display_column = display_length(state, state->input_buffer[state->input_row].text, state->input_column); - state->dirty = 1; + if (state->input_display_column < state->input_first_shown_column) + state->input_first_shown_column = state->input_display_column; + state->dirty = 1; return 0; }