From 3919267750dc9e83c7afbb27b94af20c170df3fc Mon Sep 17 00:00:00 2001 From: Matthias BUSSONNIER Date: Fri, 17 Feb 2012 15:05:40 +0100 Subject: [PATCH] Removing some code that seem not to be usefull anymore if having problem with Tab Completion try to revese this commit --- IPython/frontend/html/notebook/static/js/codecell.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index 0adf758c5..22acafdb6 100644 --- a/IPython/frontend/html/notebook/static/js/codecell.js +++ b/IPython/frontend/html/notebook/static/js/codecell.js @@ -18,7 +18,6 @@ var IPython = (function (IPython) { var CodeCell = function (notebook) { this.code_mirror = null; this.input_prompt_number = null; - this.is_completing = false; this.completion_cursor = null; this.outputs = []; this.collapsed = false; @@ -158,14 +157,6 @@ var IPython = (function (IPython) { } else { // keypress/keyup also trigger on TAB press, and we don't want to // use those to disable tab completion. - if (this.is_completing && event.keyCode !== key.tab) { - var ed_cur = editor.getCursor(); - var cc_cur = this.completion_cursor; - if (ed_cur.line !== cc_cur.line || ed_cur.ch !== cc_cur.ch) { - this.is_completing = false; - this.completion_cursor = null; - }; - }; return false; }; return false; @@ -275,8 +266,6 @@ var IPython = (function (IPython) { pre_cursor.trim(); // Autocomplete the current line. var line = this.code_mirror.getLine(cur.line); - this.is_completing = true; - this.completion_cursor = cur; // one could fork here and directly call finish completing // if kernel is busy IPython.notebook.complete_cell(this, line, cur.ch);