diff --git a/game/game.js b/game/game.js index e11abd1df..b70a8cf97 100644 --- a/game/game.js +++ b/game/game.js @@ -7554,7 +7554,7 @@ if(str.lastIndexOf(start,0)==0&&!list.includes(str)) list.push(str); } for(let v=token.state.localVars;v;v=v.next) maybeAdd(v.name); - for(let c=token.state.context;c;c=c.prev) for (let v=c.vars;v;v=v.next) maybeAdd(v.name) + for(let c=token.state.context;c;c=c.prev) for(let v=c.vars;v;v=v.next) maybeAdd(v.name) for(let v=token.state.globalVars;v;v=v.next) maybeAdd(v.name); if(options&&options.additionalContext!=null) for(let key in options.additionalContext) maybeAdd(key); list.addArray(keys); diff --git a/layout/default/codemirror.css b/layout/default/codemirror.css index ac5411f88..4451eeabd 100644 --- a/layout/default/codemirror.css +++ b/layout/default/codemirror.css @@ -468,6 +468,12 @@ div.cm-s-mdn-like span.CodeMirror-matchingbracket { outline:1px solid grey; colo display: block; } +@media (max-width: 1000px) { + .CodeMirror-hints::-webkit-scrollbar { + width: 25px; + } +} + .CodeMirror-hints::-webkit-scrollbar-thumb { background-color: rgb(218, 215, 215); height: 50px;