commit 2145fddd6c70a5245a691c04f81e767082fd9851 from: Omar Polo date: Wed May 12 12:18:54 2021 UTC unbreak forward-char outside the minibuffer The commit affb81446811bb35619b793ada17a32eff1aa28e, with its out-of-bound fix, broke forward-char outside the minibuffer. commit - 7cdf12cbee5f0812071d9bf15e32849aab36d5f5 commit + 2145fddd6c70a5245a691c04f81e767082fd9851 blob - 55fba4a6bb5199888fd94e5ebacb622d2b2dccec blob + 7a80c47f4040fc1ad4c779b9989fe6d60b6fffce --- ui.c +++ ui.c @@ -452,7 +452,7 @@ cmd_forward_char(struct window *window) { size_t len; - len = utf8_cplen(ministate.buf); + len = utf8_cplen(window->current_line->line); if (++window->cpoff > len) window->cpoff = len; restore_cursor(window);