mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 21:46:57 +03:00
Fix inverted logic.
svn path=/trunk/netsurf/; revision=4704
This commit is contained in:
parent
e0da359a36
commit
b37bb0cbff
@ -2014,8 +2014,10 @@ bool textarea_cut(struct browser_window *bw,
|
||||
|
||||
/* and the last box */
|
||||
if (box) {
|
||||
if (clipboard && gui_add_to_clipboard(box->text + start_idx,
|
||||
if (clipboard && !gui_add_to_clipboard(box->text + start_idx,
|
||||
end_idx - start_idx, end_idx > box->length)) {
|
||||
success = false;
|
||||
} else {
|
||||
if (del) {
|
||||
if (!delete_handler(bw, box, start_idx,
|
||||
end_idx - start_idx))
|
||||
@ -2024,8 +2026,6 @@ bool textarea_cut(struct browser_window *bw,
|
||||
textbox_delete(bw, box, start_idx,
|
||||
end_idx - start_idx);
|
||||
}
|
||||
} else {
|
||||
success = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user