Index: Source/devtools/front_end/ui/TextPrompt.js |
diff --git a/Source/devtools/front_end/ui/TextPrompt.js b/Source/devtools/front_end/ui/TextPrompt.js |
index 14ffd45277a6a97e54d598c8cf8c4d80dbd6b022..8efa6190b3d4eb37ccb5cdc635ff6ac2e3097fa6 100644 |
--- a/Source/devtools/front_end/ui/TextPrompt.js |
+++ b/Source/devtools/front_end/ui/TextPrompt.js |
@@ -357,6 +357,7 @@ WebInspector.TextPrompt.prototype = { |
}, |
/** |
+ * @param {boolean=} force |
* @param {boolean=} reverse |
*/ |
complete: function(force, reverse) |
@@ -386,7 +387,7 @@ WebInspector.TextPrompt.prototype = { |
var wordPrefixRange = selectionRange.startContainer.rangeOfWord(selectionRange.startOffset, this._completionStopCharacters, this._element, "backward"); |
this._waitingForCompletions = true; |
- this._loadCompletions(this.proxyElement, wordPrefixRange, force, this._completionsReady.bind(this, selection, wordPrefixRange, !!reverse)); |
+ this._loadCompletions(this.proxyElement, wordPrefixRange, force || false, this._completionsReady.bind(this, selection, wordPrefixRange, !!reverse)); |
}, |
disableDefaultSuggestionForEmptyInput: function() |