notebook: fix, only one completion autopick

This commit is contained in:
Matthias BUSSONNIER 2011-12-06 14:16:09 +01:00
parent c596d17eaf
commit 44c959f88b

View File

@ -278,6 +278,7 @@ var IPython = (function (IPython) {
// give common prefix of a array of string
function sharedStart(A){
if(A.length == 1){return A[0]}
if(A.length > 1 ){
var tem1, tem2, s, A = A.slice(0).sort();
tem1 = A[0];