mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Free utf8 substrings for delete word (ctrl-w)
This commit is contained in:
parent
268c33e1c6
commit
23aaa51a2a
@ -747,6 +747,9 @@ _delete_previous_word(void)
|
|||||||
input_len_bytes = strlen(start_string)+i;
|
input_len_bytes = strlen(start_string)+i;
|
||||||
input[input_len_bytes] = '\0';
|
input[input_len_bytes] = '\0';
|
||||||
|
|
||||||
|
g_free(start_string);
|
||||||
|
g_free(end_string);
|
||||||
|
|
||||||
_clear_input();
|
_clear_input();
|
||||||
waddstr(inp_win, input);
|
waddstr(inp_win, input);
|
||||||
wmove(inp_win, 0, start_del);
|
wmove(inp_win, 0, start_del);
|
||||||
|
Loading…
Reference in New Issue
Block a user