DevTools: [CodeMirror] roll comment plugin to @7dfbf42

BUG=414302
R=vsevik

Review URL: https://codereview.chromium.org/658563005

git-svn-id: svn://svn.chromium.org/blink/trunk@183998 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent a62f1b72
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
CodeMirror.defineExtension("uncomment", function(from, to, options) { CodeMirror.defineExtension("uncomment", function(from, to, options) {
if (!options) options = noOptions; if (!options) options = noOptions;
var self = this, mode = self.getModeAt(from); var self = this, mode = self.getModeAt(from);
var end = Math.min(to.line, self.lastLine()), start = Math.min(from.line, end); var end = Math.min(to.ch != 0 || to.line == from.line ? to.line : to.line - 1, self.lastLine()), start = Math.min(from.line, end);
// Try finding line comments // Try finding line comments
var lineString = options.lineComment || mode.lineComment, lines = []; var lineString = options.lineComment || mode.lineComment, lines = [];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment