summary refs log tree commit diff
diff options
context:
space:
mode:
authorwlodekm <[email protected]>2024-11-10 21:07:22 +0200
committerwlodekm <[email protected]>2024-11-10 21:07:22 +0200
commit94e55a524c2faf0bd2c3b2e5c765c156e911472b (patch)
treef5bb5a7d2e7c5b39a0465053207bbfb430d3610d
parentad9a8fa0eb44d775d8fe7989df9de1ab28e72a78 (diff)
slight fix
-rwxr-xr-xbuildall.sh4
-rw-r--r--v2/screen/home.ts2
2 files changed, 5 insertions, 1 deletions
diff --git a/buildall.sh b/buildall.sh
index a1afb5d..a0e2bcd 100755
--- a/buildall.sh
+++ b/buildall.sh
@@ -1,5 +1,9 @@
 echo "Welcome to the meower CL build script"
 
+echo "removing build folder if there already is a build there"
+
+rm -r build/*
+
 echo "Building windows..."
 deno task build-win
 
diff --git a/v2/screen/home.ts b/v2/screen/home.ts
index 4de3c5b..0be3ef9 100644
--- a/v2/screen/home.ts
+++ b/v2/screen/home.ts
@@ -18,7 +18,7 @@ export default {
                 splitText = splitText.map(t => t.replace(new RegExp(`([^]){${termWidth}}`, "g"),"$1\n"));
                 splitText = splitText.join("\n").split("\n")
 
-                splitText = splitText.slice(-(termHeight - inputValueHeight - 1));
+                splitText = splitText.slice(-(termHeight - inputValueHeight));
 
                 return splitText.join("\n")
             }]