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

Unified Diff: Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js

Issue 472793002: DevTools: Make TextEditor.tokenAtTextPosition() return exclusive end column (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix remaining cases Created 6 years, 4 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
Index: Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js
diff --git a/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js b/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js
index c8d8f77bf4bff3252a7f5872d8592edcdd9a2c98..4764300ffa8a35887d14a67b06921c413f4e2772 100644
--- a/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js
+++ b/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js
@@ -734,7 +734,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
return null;
return {
startColumn: token.start,
- endColumn: token.end - 1,
+ endColumn: token.end,
type: token.type
};
},

Powered by Google App Engine
This is Rietveld 408576698