Show More
@@ -47,7 +47,7 b' var IPython = (function(IPython ) {' | |||
|
47 | 47 | while(s && tem2.indexOf(tem1) == -1){ |
|
48 | 48 | tem1 = tem1.substring(0, --s); |
|
49 | 49 | } |
|
50 | if (tem1 == "" ){return null;} | |
|
50 | if (tem1 == "" || tem2.indexOf(tem1) != 0){return null;} | |
|
51 | 51 | return { str : tem1, |
|
52 | 52 | type : "computed", |
|
53 | 53 | from : B[0].from, |
@@ -210,7 +210,7 b' var IPython = (function(IPython ) {' | |||
|
210 | 210 | //Check that shared start is not null which can append with prefixed completion |
|
211 | 211 | // like %pylab , pylab have no shred start, and ff will result in py<tab><tab> |
|
212 | 212 | // to erase py |
|
213 | var sh = sharedStart(this.raw_result) | |
|
213 | var sh = sharedStart(this.raw_result); | |
|
214 | 214 | if(sh){ |
|
215 | 215 | this.insert(sh); |
|
216 | 216 | } |
General Comments 0
You need to be logged in to leave comments.
Login now