浏览代码

Handle mSelectIdx<0 case

Brian Fiete 7 月之前
父节点
当前提交
72d74149be
共有 1 个文件被更改,包括 4 次插入0 次删除
  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);