Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

copy-paste: Stop treating selections with extra whitespace as multi-line.

evykassirer358416349eb0
diff --git a/static/js/copy_and_paste.js b/static/js/copy_and_paste.js
index 0cb1ed9a76d..e6141bda293 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]);
}