diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/textinput.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/render/textinput.c b/render/textinput.c index 0e62d1e5b..3712690d4 100644 --- a/render/textinput.c +++ b/render/textinput.c @@ -554,8 +554,8 @@ static bool textinput_textarea_cut(struct content *c, struct box *next = box->next; if (box->type == BOX_BR) { - if (clipboard && - !gui_add_to_clipboard("\n", 1, false)) { + if (clipboard && !gui_add_to_clipboard("\n", 1, false, + plot_style_font)) { gui_commit_clipboard(); return false; } @@ -565,7 +565,7 @@ static bool textinput_textarea_cut(struct content *c, if (clipboard && !gui_add_to_clipboard(box->text + start_idx, box->length - start_idx, - SPACE_LEN(box))) { + SPACE_LEN(box), plot_style_font)) { gui_commit_clipboard(); return false; } @@ -593,7 +593,8 @@ static bool textinput_textarea_cut(struct content *c, /* and the last box */ if (box) { if (clipboard && !gui_add_to_clipboard(box->text + start_idx, - end_idx - start_idx, end_idx > box->length)) { + end_idx - start_idx, end_idx > box->length, + plot_style_font)) { success = false; } else { if (del) { |