From 72d74149be03dc833fc89b025d4b2ac895ca039e Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 24 Jan 2025 15:55:39 -0800 Subject: [PATCH] Handle mSelectIdx<0 case --- IDE/src/ui/AutoComplete.bf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IDE/src/ui/AutoComplete.bf b/IDE/src/ui/AutoComplete.bf index 75989f0d..99655698 100644 --- a/IDE/src/ui/AutoComplete.bf +++ b/IDE/src/ui/AutoComplete.bf @@ -1070,8 +1070,12 @@ namespace IDE.ui { var font = IDEApp.sApp.mCodeFont; + extHeight = 0; extWidth = 0; + if (mSelectIdx < 0) + return; + float curX = GS!(8); float curY = GS!(5);