From 4a60a92db95097f41cffbe12e6fbbcaa48efa8a3 Mon Sep 17 00:00:00 2001 From: Mattias Runge Date: Mon, 12 Sep 2016 15:27:51 +0200 Subject: [PATCH 1/2] Fix for autocomplete things beginning with / --- dist/autocomplete.js | 2 +- lib/autocomplete.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/autocomplete.js b/dist/autocomplete.js index df362bc1..70329fdf 100755 --- a/dist/autocomplete.js +++ b/dist/autocomplete.js @@ -49,7 +49,7 @@ var autocomplete = { if (input.match) { input = parseMatchSection.call(this, input); getMatchData.call(self, input, function (data) { - var dataMatch = getMatch(input.context, data); + var dataMatch = getMatch(input.context, data, { ignoreSlashes: true }); if (dataMatch) { input.context = dataMatch; evaluateTabs(input); diff --git a/lib/autocomplete.js b/lib/autocomplete.js index 725714dc..c80a4cb5 100755 --- a/lib/autocomplete.js +++ b/lib/autocomplete.js @@ -49,7 +49,7 @@ var autocomplete = { if (input.match) { input = parseMatchSection.call(this, input); getMatchData.call(self, input, function (data) { - var dataMatch = getMatch(input.context, data); + var dataMatch = getMatch(input.context, data, {ignoreSlashes: true}); if (dataMatch) { input.context = dataMatch; evaluateTabs(input); From e9c7093384c765c847d3aa848f6a9c377017ee09 Mon Sep 17 00:00:00 2001 From: Mattias Runge Date: Mon, 12 Sep 2016 15:44:57 +0200 Subject: [PATCH 2/2] Fix for autocomplete things beginning with / and make it work still for things without / --- dist/autocomplete.js | 2 +- lib/autocomplete.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/autocomplete.js b/dist/autocomplete.js index 70329fdf..d847c06c 100755 --- a/dist/autocomplete.js +++ b/dist/autocomplete.js @@ -49,7 +49,7 @@ var autocomplete = { if (input.match) { input = parseMatchSection.call(this, input); getMatchData.call(self, input, function (data) { - var dataMatch = getMatch(input.context, data, { ignoreSlashes: true }); + var dataMatch = getMatch(input.context, data, { ignoreSlashes: input.context[0] === "/" }); if (dataMatch) { input.context = dataMatch; evaluateTabs(input); diff --git a/lib/autocomplete.js b/lib/autocomplete.js index c80a4cb5..ddde8a20 100755 --- a/lib/autocomplete.js +++ b/lib/autocomplete.js @@ -49,7 +49,7 @@ var autocomplete = { if (input.match) { input = parseMatchSection.call(this, input); getMatchData.call(self, input, function (data) { - var dataMatch = getMatch(input.context, data, {ignoreSlashes: true}); + var dataMatch = getMatch(input.context, data, {ignoreSlashes: input.context[0] === "/"}); if (dataMatch) { input.context = dataMatch; evaluateTabs(input);