From 23782f9faccf2df86ced886bd54d3e2f1aef5f47 Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Mon, 9 Oct 2023 18:05:48 +0000 Subject: [PATCH] removed dbg warnings from tab completion --- scripts/editor.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/editor.js b/scripts/editor.js index b24bab4..f018cd0 100644 --- a/scripts/editor.js +++ b/scripts/editor.js @@ -1507,10 +1507,8 @@ replpanel.inputs.tab = function() { if (!this.value.includes('.')) keys.push("this"); - if (eval(`typeof ${keyobj.tofirst('.')}`) === 'object' && eval(`typeof ${keyobj.replace('.', '?.')}`) === 'object') { - Log.warn("set obj to " + keyobj); + if (eval(`typeof ${keyobj.tofirst('.')}`) === 'object' && eval(`typeof ${keyobj.replace('.', '?.')}`) === 'object') obj = eval(keyobj); - } else if (this.value.includes('.')){ Log.say(`${this.value} is not an object.`); return; @@ -1893,8 +1891,7 @@ var assetexplorer = Object.copy(openlevelpanel, { function tab_complete(val, list) { if (!val) return val; list.dofilter(function(x) { return x.startsWith(val); }); - Log.warn(list); - Log.warn(val); + if (list.length === 1) { return list[0]; }