From 3a94f8196474359f298b31bfb25ae89ce7f6708a 2011-12-07 07:03:37 From: Matthias BUSSONNIER Date: 2011-12-07 07:03:37 Subject: [PATCH] notebook: fix, only one completion autopick --- diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index e150520..a8a3b47 100644 --- a/IPython/frontend/html/notebook/static/js/codecell.js +++ b/IPython/frontend/html/notebook/static/js/codecell.js @@ -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];