Skip to content

Commit 320cc5a

Browse files
hulryungmax-niederman
authored andcommitted
fix: trim korean word lists to match advertised counts and clamp IME cursor
- korean100: 106 → 100 words - korean200: 205 → 200 words - Clamp IME cursor X position to input widget bounds
1 parent fd49829 commit 320cc5a

3 files changed

Lines changed: 2 additions & 12 deletions

File tree

resources/runtime/language/korean100

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,3 @@
9898
소리
9999
지나다
100100
이제
101-
내다
102-
103-
바로
104-
사회
105-
106-
어머니

resources/runtime/language/korean200

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,3 @@
198198
나이
199199
200200
201-
서로
202-
어느
203-
오르다
204-
느끼다
205-

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ impl State {
214214
let progress_width =
215215
ratatui::text::Line::from(test.words[test.current_word].progress.as_str())
216216
.width() as u16;
217-
f.set_cursor(inner_x + progress_width, inner_y);
217+
let max_cursor_x = chunks[0].right().saturating_sub(2);
218+
f.set_cursor((inner_x + progress_width).min(max_cursor_x), inner_y);
218219
})?;
219220
}
220221
State::Results(results) => {

0 commit comments

Comments
 (0)