Fix home command not always working

pull/449/head
Lennart Kats 2017-07-06 07:15:30 +00:00
rodzic 58cbafc603
commit 83c7367d86
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -716,7 +716,7 @@ define(function(require, exports, module) {
HomeCommand.tryCreate = function(inputText) {
if (INPUTS_HOME.indexOf(inputText) > -1
// Only attempt home if we'd jump to the start of a prompt
&& (peek(-predictIndex - 1) === "$" || peek(-predictIndex - 2) === "$"))
&& (peek(predictIndex - 1) === "$" || peek(predictIndex - 2) === "$"))
return new HomeCommand(inputText);
};
function HomeCommand() {