From 4eddfb922a340f2b238c5c634f2402f1cc2e7c50 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Wed, 6 Dec 2023 12:09:18 +0000 Subject: [PATCH] fix: Fixed multi copy paste for long text --- packages/nc-gui/composables/useMultiSelect/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/composables/useMultiSelect/index.ts b/packages/nc-gui/composables/useMultiSelect/index.ts index a04c5bb727..ed330a83f3 100644 --- a/packages/nc-gui/composables/useMultiSelect/index.ts +++ b/packages/nc-gui/composables/useMultiSelect/index.ts @@ -752,7 +752,7 @@ export function useMultiSelect( const clipboardMatrix = parsedClipboard.data as string[][] - const selectionRowCount = selectedRange.end.row - selectedRange.start.row + 1 + const selectionRowCount = clipboardMatrix.length const pasteMatrixRows = selectionRowCount const pasteMatrixCols = clipboardMatrix[0].length