From b74967419885ed7391c1d5ab39e094f762d81b22 Mon Sep 17 00:00:00 2001 From: Kai Saba Date: Thu, 12 Dec 2024 16:39:51 +0100 Subject: [PATCH] fix: removed line bug when pasting code --- src/tools/utils/editorOperationUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/utils/editorOperationUtils.ts b/src/tools/utils/editorOperationUtils.ts index 3383067..5afaf22 100644 --- a/src/tools/utils/editorOperationUtils.ts +++ b/src/tools/utils/editorOperationUtils.ts @@ -85,7 +85,7 @@ function tryIgnoreLockedCodeTextForOperation ( } if (remainingText !== '') { - splitText.push(remainingText.endsWith('\n') ? remainingText.slice(0, remainingText.length - 1) : remainingText) + splitText.push(remainingText) } return splitText }