Show More
@@ -8,18 +8,15 b' var IPython = (function (IPython) {' | |||||
8 | // easyier key mapping |
|
8 | // easyier key mapping | |
9 | var key = IPython.utils.keycodes; |
|
9 | var key = IPython.utils.keycodes; | |
10 |
|
10 | |||
11 | // what is the common start of all completions |
|
|||
12 | function _existing_completion(item, completion_array){ |
|
11 | function _existing_completion(item, completion_array){ | |
13 | if(item.substr(0,1) == '.') { |
|
|||
14 |
|
|
12 | for( var c in completion_array ) { | |
15 |
|
|
13 | if(completion_array[c].substr(-item.length) == item) | |
16 |
|
|
14 | { return true; } | |
17 |
|
|
15 | } | |
18 |
|
|
16 | return false; | |
19 |
|
|
17 | } | |
20 | else {return completion_array.indexOf(item) != -1} |
|
|||
21 | } |
|
|||
22 |
|
18 | |||
|
19 | // what is the common start of all completions | |||
23 | function shared_start(B) { |
|
20 | function shared_start(B) { | |
24 | if (B.length == 1) { |
|
21 | if (B.length == 1) { | |
25 | return B[0]; |
|
22 | return B[0]; |
General Comments 0
You need to be logged in to leave comments.
Login now