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() {