| Index: third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
|
| index 836cc8d0b62d4d681b81939ab53b11f5f4b5704d..edb4d88e508926af9147c95917997961db906c96 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
|
| @@ -329,7 +329,7 @@ WebInspector.TextPrompt = class extends WebInspector.Object {
|
| }
|
|
|
| _refreshGhostText() {
|
| - if (this._queryRange && this._isCaretAtEndOfPrompt()) {
|
| + if (this._queryRange && this._isCaretAtEndOfPrompt() && this._currentSuggestion.startsWith(this.text().substring(this._queryRange.startColumn))) {
|
| this._ghostTextElement.textContent =
|
| this._currentSuggestion.substring(this._queryRange.endColumn - this._queryRange.startColumn);
|
| this._element.appendChild(this._ghostTextElement);
|
|
|