Browse Source

Handle mSelectIdx<0 case

Brian Fiete 7 months ago
parent
commit
72d74149be
1 changed files with 4 additions and 0 deletions
  1. 4 0
      IDE/src/ui/AutoComplete.bf

+ 4 - 0
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);