From 358416349eb0662807f210827f71992868515a5a Mon Sep 17 00:00:00 2001 From: evykassirer Date: Fri, 12 Aug 2022 21:11:46 -0700 Subject: [PATCH] copy-paste: Stop treating selections with extra whitespace as multi-line. A message selection that goes off the end of the last message in a topic could still be a selection of only one message. We shouldn't assume that it's multiple messages, and so there shouldn't be an assignment of `skip_same_td_check = true`. --- static/js/copy_and_paste.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/static/js/copy_and_paste.js b/static/js/copy_and_paste.js index 0cb1ed9a76..e6141bda29 100644 --- a/static/js/copy_and_paste.js +++ b/static/js/copy_and_paste.js @@ -239,9 +239,6 @@ export function analyze_selection(selection) { // last message if ($endc.attr("id") === "bottom_whitespace" || $endc.attr("id") === "compose_close") { $initial_end_tr = $(".message_row").last(); - // The selection goes off the end of the message feed, so - // this is a multi-message selection. - skip_same_td_check = true; } else { $initial_end_tr = $($endc.parents(".selectable_row")[0]); }