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