瀏覽代碼

HUE-3938 [editor] Query history parsing error on alter table

Johan Ahlen 9 年之前
父節點
當前提交
7df8dc22dd

文件差異過大導致無法顯示
+ 0 - 0
desktop/core/src/desktop/static/desktop/js/ace/ace.js


文件差異過大導致無法顯示
+ 0 - 0
desktop/core/src/desktop/static/desktop/js/ace/snippets/actionscript.js


文件差異過大導致無法顯示
+ 0 - 0
desktop/core/src/desktop/static/desktop/js/ace/snippets/java.js


文件差異過大導致無法顯示
+ 0 - 0
desktop/core/src/desktop/static/desktop/js/ace/snippets/javascript.js


文件差異過大導致無法顯示
+ 0 - 0
desktop/core/src/desktop/static/desktop/js/ace/snippets/php.js


+ 6 - 3
tools/ace-editor/lib/ace/layer/text.js

@@ -335,9 +335,12 @@ var Text = function(parentEl) {
                 // normally escaping this is not needed, but xml documents throw error when setting innerHTML to ]]>
                 return ">";
             } else if (c == "\t") {
-                var tabSize = self.session.getScreenTabSize(screenColumn + tabIdx);
-                screenColumn += tabSize - 1;
-                return self.$tabStrings[tabSize];
+                if (typeof self.session !== 'undefined') {
+                    var tabSize = self.session.getScreenTabSize(screenColumn + tabIdx);
+                    screenColumn += tabSize - 1;
+                    return self.$tabStrings[tabSize];
+                }
+                return "<span class='ace_invisible ace_invisible_tab'>&#9;</span>";
             } else if (c == "\u3000") {
                 // U+3000 is both invisible AND full-width, so must be handled uniquely
                 var classToUse = self.showInvisibles ? "ace_cjk ace_invisible ace_invisible_space" : "ace_cjk";

部分文件因文件數量過多而無法顯示