mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Ctrl right moves to space including end of line
This commit is contained in:
parent
58e62f3e63
commit
8aad45f9d3
@ -334,13 +334,16 @@ _handle_edit(int result, const wint_t ch, char *input, int *size)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle some shit
|
|
||||||
if (next_ch == NULL) {
|
if (next_ch == NULL) {
|
||||||
inp_x = display_size;
|
inp_x = display_size;
|
||||||
wmove(inp_win, 0, inp_x);
|
wmove(inp_win, 0, inp_x);
|
||||||
} else {
|
} else {
|
||||||
glong offset = g_utf8_pointer_to_offset(input, curr_ch);
|
glong offset = g_utf8_pointer_to_offset(input, curr_ch);
|
||||||
|
if (offset == display_size - 1) {
|
||||||
inp_x = offset + 1;
|
inp_x = offset + 1;
|
||||||
|
} else {
|
||||||
|
inp_x = offset;
|
||||||
|
}
|
||||||
wmove(inp_win, 0, inp_x);
|
wmove(inp_win, 0, inp_x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user