Scroll compose input to keep the cursor visible
This commit is contained in:
parent
9c7390bad8
commit
94e16d4b32
1 changed files with 1 additions and 1 deletions
2
irc9.c
2
irc9.c
|
|
@ -2597,7 +2597,7 @@ static void draw_input(void)
|
|||
x += width;
|
||||
i += len ? (int)len : 1;
|
||||
}
|
||||
while (saving && x >= cols && start < pos) {
|
||||
while (x >= cols && start < pos) {
|
||||
int width;
|
||||
size_t len = terminal_character(text + start, (size_t)(pos - start), &width);
|
||||
start += len ? (int)len : 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue