mirror of
https://github.com/wavetermdev/inshellisense.git
synced 2026-08-05 13:43:30 -07:00
@@ -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;
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user