Fix jump to last item in completer popup.

This commit is contained in:
DanyaPostfactum 2014-04-08 14:03:10 +10:00
commit 0d6eb5b718

View file

@ -139,7 +139,7 @@ var Autocomplete = function() {
var max = this.popup.session.getLength() - 1;
switch(where) {
case "up": row = row < 0 ? max : row - 1; break;
case "up": row = row <= 0 ? max : row - 1; break;
case "down": row = row >= max ? -1 : row + 1; break;
case "start": row = 0; break;
case "end": row = max; break;