Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Unified Diff: third_party/WebKit/Source/devtools/front_end/common/TextDictionary.js

Issue 2385273004: DevTools: fix text editor autocompletion (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/sources/autocomplete-general-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/common/TextDictionary.js
diff --git a/third_party/WebKit/Source/devtools/front_end/common/TextDictionary.js b/third_party/WebKit/Source/devtools/front_end/common/TextDictionary.js
index 99b1246200272c7685820a21cad17795ee44887d..d351f718a1653d7806a3b14f2502d6d67cf66030 100644
--- a/third_party/WebKit/Source/devtools/front_end/common/TextDictionary.js
+++ b/third_party/WebKit/Source/devtools/front_end/common/TextDictionary.js
@@ -58,9 +58,9 @@ WebInspector.TextDictionary.prototype = {
var count = this._words.get(word) || 0;
if (!count)
return;
- this._index.remove(word);
if (count === 1) {
this._words.delete(word);
+ this._index.remove(word);
return;
}
--count;
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/sources/autocomplete-general-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698