From beb94ce99c0c8d2ffc7c38bb0ea1aea10718dd55 Mon Sep 17 00:00:00 2001 From: Jonas Lukasczyk Date: Wed, 26 Jun 2024 16:01:32 +0200 Subject: [PATCH] improved git chunking --- packages/renderer/src/views/GitCommitView.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/renderer/src/views/GitCommitView.vue b/packages/renderer/src/views/GitCommitView.vue index 6dbd4cd..e305204 100644 --- a/packages/renderer/src/views/GitCommitView.vue +++ b/packages/renderer/src/views/GitCommitView.vue @@ -95,11 +95,12 @@ const trackChanges = async () => { for(let i=0; istring_limit){ - chunks.push(i); + chunks.push(i===0 || i===chunks[chunks.length-1] ? i+1 : i); string = a+' '; } } - chunks.push(b.length); + if(chunks[chunks.length-1]!==b.length) + chunks.push(b.length); for(let i=0; i'"'+x+'"'));