mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04:00
ime: don’t commit to the slave while scrollback searching
This commit is contained in:
parent
9ce0edc8bb
commit
7eea6f94ed
1 changed files with 9 additions and 5 deletions
14
ime.c
14
ime.c
|
|
@ -129,10 +129,14 @@ done(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
|
||||||
|
|
||||||
/* 3. Insert commit string */
|
/* 3. Insert commit string */
|
||||||
if (seat->ime.commit.pending.text != NULL) {
|
if (seat->ime.commit.pending.text != NULL) {
|
||||||
term_to_slave(
|
if (term->is_searching) {
|
||||||
term,
|
/* TODO */
|
||||||
seat->ime.commit.pending.text,
|
} else {
|
||||||
strlen(seat->ime.commit.pending.text));
|
term_to_slave(
|
||||||
|
term,
|
||||||
|
seat->ime.commit.pending.text,
|
||||||
|
strlen(seat->ime.commit.pending.text));
|
||||||
|
}
|
||||||
ime_reset_commit(seat);
|
ime_reset_commit(seat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -214,7 +218,7 @@ done(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
|
||||||
*
|
*
|
||||||
* I haven't found an IME that requests anything else
|
* I haven't found an IME that requests anything else
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const size_t byte_len = strlen(seat->ime.preedit.pending.text);
|
const size_t byte_len = strlen(seat->ime.preedit.pending.text);
|
||||||
|
|
||||||
int cell_begin = -1, cell_end = -1;
|
int cell_begin = -1, cell_end = -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue