mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-13 06:19:21 +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 */
|
/* and the last box */
|
||||||
if (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)) {
|
end_idx - start_idx, end_idx > box->length)) {
|
||||||
|
success = false;
|
||||||
|
} else {
|
||||||
if (del) {
|
if (del) {
|
||||||
if (!delete_handler(bw, box, start_idx,
|
if (!delete_handler(bw, box, start_idx,
|
||||||
end_idx - start_idx))
|
end_idx - start_idx))
|
||||||
@ -2024,8 +2026,6 @@ bool textarea_cut(struct browser_window *bw,
|
|||||||
textbox_delete(bw, box, start_idx,
|
textbox_delete(bw, box, start_idx,
|
||||||
end_idx - start_idx);
|
end_idx - start_idx);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
success = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user