From e81f0731bcd56a8dc0e743ee024c9a9e2bd0174b Mon Sep 17 00:00:00 2001 From: Chapman Pendery Date: Fri, 6 Oct 2023 21:43:15 -0700 Subject: [PATCH] fix: drop stale todos Signed-off-by: Chapman Pendery --- src/ui/suggestions.tsx | 1 - src/ui/ui.tsx | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/ui/suggestions.tsx b/src/ui/suggestions.tsx index e9b346b..cad8155 100644 --- a/src/ui/suggestions.tsx +++ b/src/ui/suggestions.tsx @@ -59,7 +59,6 @@ export default function Suggestions({ const activePagedSuggestionIndex = activeSuggestionIndex % MaxSuggestions; const activeDescription = pagedSuggestions.at(activePagedSuggestionIndex)?.description || ""; - // TODO: tweak this logic to be more accurate as it gives bad offsets on wrap const wrappedPadding = leftPadding % windowWidth; const maxPadding = activeDescription.length !== 0 ? windowWidth - SuggestionWidth - DescriptionWidth : windowWidth - SuggestionWidth; const swapDescription = wrappedPadding > maxPadding; diff --git a/src/ui/ui.tsx b/src/ui/ui.tsx index 49c6208..2257402 100644 --- a/src/ui/ui.tsx +++ b/src/ui/ui.tsx @@ -6,8 +6,6 @@ import { Suggestion } from "../runtime/model.js"; import Cursor from "./cursor.js"; import Suggestions from "./suggestions.js"; -// TODO: fix issue where we are not rendering some rows of the suggestion UI - const Prompt = "> "; function UI() {